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: (
Depending on why you want to do this, you may want/need to try
different approaches with mini-test apps to see what your results are.
If you test with iPhoto for example, it does load the main menu nib,
but loads a different nib than the usual main window for choosing or
creating an iPhoto li
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 11:22 AM, Mitchell Livingston wrote:
I want to be able to detect if the option key is being held down on
launch. I found reference to GetCurrentKeyModifiers(), but that
seems to be depreciated/not recommended.
Depending on when you're trying to check for the key down, I'd
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
Hello,
I want to be able to detect if the option key is being held down on
launch. I found reference to GetCurrentKeyModifiers(), but that seems
to be depreciated/not recommended.
Thanks,
Mitch
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.co