Re: Detect modifier keys on launch
Re: Detect modifier keys on launch
- Subject: Re: Detect modifier keys on launch
- From: "Tom Harrington" <email@hidden>
- Date: Wed, 5 Jul 2006 15:14:59 -0600
On 7/5/06, Doug Knowles <email@hidden> 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.
I have read that I should try using the Carbon APIs, but I'm getting
lost in the need to provide a GrafPtr (boy, does that take me back),
and it seems like it should be easier than that, or that there should
be a sample code snippet around, since I doubt that this is an
uncommon need.
Any better advice or references available than "search the archives"?
GetCurrentKeyModifiers(). One call does it all. I don't know how
this might be done in Cocoa.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
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