Re: Why isn't this delegate protocol being seen?
Re: Why isn't this delegate protocol being seen?
- Subject: Re: Why isn't this delegate protocol being seen?
- From: Kyle Sluder <email@hidden>
- Date: Sun, 3 Oct 2010 22:34:29 -0700
On Sun, Oct 3, 2010 at 10:11 PM, G S <email@hidden> wrote:
> Hi all. I'm getting a compiler warning that this delegate protocol
> isn't defined, when it most certainly is defined in the
> CLLocationManager.h file that I've included:
No it's not. CLLocationManagerDelegate is defined in
CLLocationManagerDelegate.h. CLLocationManager.h only includes a
forward reference to the protocol.
While #importing CLLocationMangaerDelegate.h will work, you're
probably best off replacing your individual header file imports with
an import of the umbrella header CoreLocation.h.
Also, a style point: when including framework headers, convention is
to use angle brackets, as you have done for your UIKit.h import. It
visually separates system headers from header files in your own
project.
--Kyle Sluder
_______________________________________________
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