Commits

Ronald Oussoren committed fed8c1f

Prototype tweaks to make it possible to compile with -Werror using the 10.9 SDK.

Comments (0)

Files changed (4)

pyobjc-core/Modules/objc/OC_PythonArray.m

     return [OC_PythonArray class];
 }
 
--(id)initWithObjects:(NSObject**)objects count:(NSUInteger)count
+-(id)initWithObjects:(const id[])objects count:(NSUInteger)count
 {
     /* initWithObjects:count: is primarily present to support the NSCoding
      * protocol of NSArray.

pyobjc-core/Modules/objc/OC_PythonDictionary.m

 }
 
 
-- (id)initWithObjects:(NSObject**)objects
-      forKeys:(NSObject**)keys
+- (id)initWithObjects:(const id[])objects
+      forKeys:(const id <NSCopying>[])keys
         count:(NSUInteger)count
 {
     /* This implementation is needed for our support for the NSCoding

pyobjc-core/Modules/objc/OC_PythonString.m

     return self;
 }
 
--(id)initWithBytes:(void*)bytes length:(NSUInteger)length encoding:(NSStringEncoding)encoding
+-(id)initWithBytes:(const void*)bytes length:(NSUInteger)length encoding:(NSStringEncoding)encoding
 {
     NSString* tmpval = [[NSString alloc] initWithBytes:bytes length:length encoding:encoding];
 

pyobjc-core/Modules/objc/OC_PythonUnicode.m

     return self;
 }
 
--(id)initWithBytes:(void*)bytes length:(NSUInteger)length encoding:(NSStringEncoding)encoding
+-(id)initWithBytes:(const void*)bytes length:(NSUInteger)length encoding:(NSStringEncoding)encoding
 {
     char* py_encoding = NULL;
     int byteorder = 0;