• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Array annotation strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Array annotation strangeness (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Array annotation strangeness
  • Next by Date: Re: self.myTextField.stringValue = @"" fails
  • Previous by thread: Re: Array annotation strangeness
  • Next by thread: Re: Array annotation strangeness
  • Index(es):
    • Date
    • Thread