Re: warning 'NSEvent' may not respond to '+eventWithEventRef:'
Re: warning 'NSEvent' may not respond to '+eventWithEventRef:'
- Subject: Re: warning 'NSEvent' may not respond to '+eventWithEventRef:'
- From: Kiel Gillard <email@hidden>
- Date: Tue, 26 May 2009 15:08:48 +1000
+ eventWithEventRef is Mac OS X 10.5 Leopard only API. It is
unavailable on Mac OS X 10.4 Tiger.
If you want to write from Leopard only, set the base SDK of your
target to the 10.5 SDK.
Kiel
On 26/05/2009, at 2:52 PM, Ken Tozier wrote:
Hi
I'm getting a warning when calling NSEvent's eventWithEventRef
NSEvent *event = [NSEvent eventWithEventRef: ref];
I include Appkit and Carbon in the file where this warning appears
#import <AppKit/AppKit.h>
#import <Carbon/Carbon.h>
And the documentation doesn't say this is an obsolete method
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#/
/apple_ref/occ/clm/NSEvent/eventWithEventRef:
So why am I getting the warning?
Despite the warning, it seems to run fine, just kind of annoying to
see this yellow 'WARNING !!!!" balloon in my code.
Thanks in advance
_______________________________________________
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
_______________________________________________
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