Re: Detect modifier keys on launch
Re: Detect modifier keys on launch
- Subject: Re: Detect modifier keys on launch
- From: Ricky Sharp <email@hidden>
- Date: Wed, 5 Jul 2006 16:36:37 -0500
On Jul 5, 2006, at 3:54 PM, Doug Knowles wrote:
My app (by default) automatically re-opens files that were open the
last time it quit. I'd like to add the capability to temporarily
suppress this behavior by holding down the shift key during launch.
I've tried looking at the most recent event object, but since the app
just launched, there is no such event.
if (([[NSApp currentEvent] modifierFlags] & NSShiftKeyMask) != 0)
// shift is being held down
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden