+ 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/kiel.gillard%40gmail.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to