• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detect modifier keys on launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Detect modifier keys on launch (From: "Doug Knowles" <email@hidden>)

  • Prev by Date: Re: Resizing problems with generated core data entity window
  • Next by Date: iTunes-like progress bar
  • Previous by thread: Re: Detect modifier keys on launch
  • Next by thread: iTunes-like progress bar
  • Index(es):
    • Date
    • Thread