invalid receiver type 'CFTyperef'

Discussion in 'Mac Programming' started by diyora, Aug 28, 2008.

  1. macrumors newbie

    Joined:
    Jul 21, 2008
    #1
    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...
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    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.
     

Share This Page