PDA

View Full Version : invalid receiver type 'CFTyperef'




diyora
Aug 28, 2008, 08:49 AM
Hello all,
I am newbie in cocoa.I am doing coding in cocoa touch.
I try code;
CFTypeRef address;
NSString *street = address objectForKey:(NSString*)kABPersonAddressStreetKey;

I get the output but it give me warning:invalid receiver type 'CFTypeRef'.

Thank you...



kainjow
Aug 28, 2008, 11:30 AM
I'm guessing you need to declare it as a ABRecordRef instead of CFTypeRef, but I'd need to see more code to make sure.