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 protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]