Re: Subject: detect option key on startup

2009-05-11 Thread Jean-Daniel Dupas
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: (

Re: Subject: detect option key on startup

2009-05-10 Thread Kirk Kerekes
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.

Re: Subject: detect option key on startup

2009-05-09 Thread Eric Schlegel
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

Re: Subject: detect option key on startup

2009-05-09 Thread Mike Abdullah
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,

RE: Subject: detect option key on startup

2009-05-09 Thread Mitchell Livingston
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) > > > > __

RE: Subject: detect option key on startup

2009-05-09 Thread Kirk Kerekes
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