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, 2009, at 06:48PM, "Kirk Kerekes" <kirkkere...@gmail.com > wrote:
        
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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net

This email sent to cocoa...@mikeabdullah.net

_______________________________________________

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