I sent this reply to Ken but neglected to send it to the list.
On May 26, 2009, at 12:52 AM, Ken Tozier wrote:
'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
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
una
+ 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 eve
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
#import
And the documentation doesn't say this is an obsolete method
http://developer.apple.com/d