Re: Array annotation strangeness
Re: Array annotation strangeness
- Subject: Re: Array annotation strangeness
- From: David Duncan <email@hidden>
- Date: Wed, 09 May 2012 11:31:19 -0700
On May 9, 2012, at 11:09 AM, Alex Zavatone wrote:
> - (IBAction)saveData:(id)sender
> {
> for (NSDictionary * myAnnotation in self.mapView.annotations)
Here you type 'myAnnotation' as an NSDictionary*.
> NSDictionary *myGoodsDict = [myAnnotation returnPropertiesInDict];
>
> Xcode will not let the last line compile with a "Receiver type 'NSDictionary' for instance message does not declare a method with selector 'returnPropertiesInDict'
As such, the compiler tells you that an NSDictionary (which is the type you've assured it 'myAnnotation' is) does not implement the method you are trying to call on it.
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden