Getting a Build under IOS 5 WITHOUT memory management...

Nov 17, 2011 at 10:31 PM

I created a new IOS project using 5 and I think I am closed to getting a build, but I am getting hung up on this code in the OdataXMLParser.m file:

 

-(void) addNameSpace:(NSDictionary *)attributeDict inXMLDocument:(ODataXMLElements*)theXMLDocument

{

if(attributeDict)

{

NSInteger count = [attributeDict count];

if(count > 0)

{

NSString *objects[count];

NSString *keys[count];

[attributeDict getObjects:(id*)&objects andKeys:(id*)&keys];

NSString *xmlns=@"xmlns:";

for (int i = 0; i < count; i++) 

{

NSString *str = keys[i];

NSRange range=[[str lowercaseString] rangeOfString:xmlns];

if(range.length > 0 )

{

NSString *strNameSpace = [str substringFromIndex:[xmlns length]];

if(strNameSpace)

{

ODataNameSpace *odataNameSpace = [[ODataNameSpace alloc]initWithNameSpace:strNameSpace nameSpaceURI:objects[i]];

[theXMLDocument setNameSpace:odataNameSpace];

}

}

}

}

}

}

The Error message I get is:  Sending '__strong id*' to parameter of type '__unsafe_unretained id*' changes the retain/release properties of pointer...

 

I am fairly new to Objective C so I'm not sure how to deal with this.  Could anybody help me out?

 

Thanks

Mark