Re: Getting NSApplicationDelegate protocol
Re: Getting NSApplicationDelegate protocol
- Subject: Re: Getting NSApplicationDelegate protocol
- From: Kyle Sluder <email@hidden>
- Date: Fri, 06 Jul 2012 15:59:31 -0700
On Fri, Jul 6, 2012, at 10:00 PM, ecir hana wrote:
> On Fri, Jul 6, 2012 at 8:01 PM, Stephen J. Butler
> <email@hidden>wrote:
>
> >
> > You're positive you're linking against the 10.6 SDK? Even if you're on
> > 10.6 you might be linking against the 10.5 SDK and that would explain
> > your problem perfectly.
> >
> >
> NSAppKitVersionNumber says "1038.36" which is 10.6.
That tells you what version of AppKit you're _running on_, not what
version you've _linked against._ The whole purpose of that variable
(note it's a global variable, not a compile-time constant!) is so that
code linked against earlier frameworks can see if it's running on a
version of the OS older or newer than the SDK it was linked against.
The frameworks can detect when you've linked against a different version
of AppKit than you're running on, and will often change their behavior
accordingly.
--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