• 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: Why isn't this delegate protocol being seen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why isn't this delegate protocol being seen?


  • Subject: Re: Why isn't this delegate protocol being seen?
  • From: Gregory Weston <email@hidden>
  • Date: Mon, 04 Oct 2010 09:49:30 -0400

G S wrote:

>> No it's not. CLLocationManagerDelegate is defined in
>> CLLocationManagerDelegate.h. CLLocationManager.h only includes a
>> forward reference to the protocol.
>
> Aha, right-O.  Thanks.  I had just done a quick search and found the
> string in there, and left it at that.  I have a bunch of examples that
> for some reason import the specific files instead of CoreLocation.h.
> Replacing them with that single file did the trick.
>
> I do prefer the angle brackets, but have encountered unpredictable
> results when using them in the past.  They do work here, however.

Kyle was not quite accurate in simply referring to the brackets vs. quotes as a matter of style. An include directive with quotes searches in more locations than one using brackets. The oversimplified delineation is that the brackets will only consider system-provided headers while the quotes will consider those *after* first looking within your project.

For a more correct explanation, I'd point you toward any C language reference. But as a practical matter the summary'll do fine until you get a chance.

Greg
_______________________________________________

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

  • Prev by Date: Re: Instantly delete a directory without recursion?
  • Next by Date: Interacting Sizes of NSScrollView and its NSClipView and a Custom NSView
  • Previous by thread: Re: Why isn't this delegate protocol being seen?
  • Next by thread: How to get selected text in a WebView
  • Index(es):
    • Date
    • Thread