So it is. I didn't notice that. Thanks Kiel

I need to target both Tiger and Leopard so I think I'll just write a category that does the same thing and hides the carbon calls .


On May 26, 2009, at 1:08 AM, Kiel Gillard wrote:

+ 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 (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/kiel.gillard%40gmail.com

This email sent to kiel.gill...@gmail.com


_______________________________________________

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