Try in - applicationDidFinishLaunching:
Le 10 mai 09 à 00:58, Mitchell Livingston a écrit :
In what method would that need to be in to get the key on startup? I
tried without luck in init and awakeFromNib.
On Saturday, May 09, 2009, at 06:48PM, "Kirk Kerekes" > wrote:
How About: (
I often add the following to the app delegate's
applicationDidFinishLaunching: method
[self performSelector: @selector(applicationDidBeginRunLoop:)
withObject: self afterDelay: 0.0];
applicationDidBeginRunLoop: (which you must define) will execute when
the first runloop cycle executes.
On May 9, 2009, at 4:32 PM, Mike Abdullah wrote:
That won't work because the event loop is not set up yet. You want
to use GetCurrentEventKeyModifiers()
Actually you want to use GetCurrentKeyModifiers, not
GetCurrentEventKeyModifiers, since GetCurrentEventKeyModifiers returns
the state o
That won't work because the event loop is not set up yet. You want to
use GetCurrentEventKeyModifiers()
On 9 May 2009, at 23:58, Mitchell Livingston wrote:
In what method would that need to be in to get the key on startup? I
tried without luck in init and awakeFromNib.
On Saturday, May 09,
In what method would that need to be in to get the key on startup? I tried
without luck in init and awakeFromNib.
On Saturday, May 09, 2009, at 06:48PM, "Kirk Kerekes"
wrote:
>
>How About: ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
>
>
>
>
__
How About: ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
___
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-admin