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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to