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" <[email protected] > wrote:
        
How About: ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)




_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to