Re: Alternative startup for application

2010-04-06 Thread Jean-Daniel Dupas
Le 3 avr. 2010 à 05:13, Michael Nickerson a écrit : > > On Apr 02, 2010, at 10:12 PM, Gideon King wrote: > >> That's the instance method. New in 10.6 is the class method of the same >> name, which is what I need in this case, since I don't have an event to work >> with. >> >> On 03/04/2010,

Re: Alternative startup for application

2010-04-02 Thread Michael Nickerson
On Apr 02, 2010, at 10:12 PM, Gideon King wrote: > That's the instance method. New in 10.6 is the class method of the same name, > which is what I need in this case, since I don't have an event to work with. > > On 03/04/2010, at 12:09 PM, Klaus Backert wrote: > >> >> On 3 Apr 2010, at 01:15,

Re: Alternative startup for application

2010-04-02 Thread Gideon King
That's the instance method. New in 10.6 is the class method of the same name, which is what I need in this case, since I don't have an event to work with. On 03/04/2010, at 12:09 PM, Klaus Backert wrote: > > On 3 Apr 2010, at 01:15, Gideon King wrote: > >> Excellent, I like the new way of doin

Re: Alternative startup for application

2010-04-02 Thread Klaus Backert
On 3 Apr 2010, at 01:15, Gideon King wrote: Excellent, I like the new way of doing it using NSEvent directly, but I do need to support Leopard. - (NSUInteger)modifierFlags Available in Mac OS X v10.0 and later. NSAlternateKeyMask Set if Option or Alternate key is pressed. Available in Mac

Re: Alternative startup for application

2010-04-02 Thread Gideon King
Excellent, I like the new way of doing it using NSEvent directly, but I do need to support Leopard. If you launch from Finder holding the Option key, Finder closes the window you launched from, but I can tell people to put it in the dock and launch from there to avoid that. Here's what I'm doi

Re: Alternative startup for application

2010-04-02 Thread Quincey Morris
On Apr 2, 2010, at 08:30, Jens Alfke wrote: > I would have said GetKeys(), but it seems to have been deprecated and removed > in the eyeblink [read: decade] since I last used Carbon. There must be some > modern equivalent for reading the current state of the keyboard? For completeness: The non

Re: Alternative startup for application

2010-04-02 Thread Ashley Clark
On Apr 2, 2010, at 10:30 AM, Jens Alfke wrote: > On Apr 2, 2010, at 1:45 AM, Gideon King wrote: > >> 1. I'm not sure what keyboard or mouse options could be used for this, since >> all the character keys change the selection in Finder, and all the normal >> modifier keys are used for special fu

Re: Alternative startup for application

2010-04-02 Thread Jens Alfke
On Apr 2, 2010, at 1:45 AM, Gideon King wrote: > 1. I'm not sure what keyboard or mouse options could be used for this, since > all the character keys change the selection in Finder, and all the normal > modifier keys are used for special functions. So first question is how I can > differentia

Alternative startup for application

2010-04-02 Thread Gideon King
Hi, I would like to have an application I am working on to be able to start up in the normal way from the finder, but also have an alternative startup that users can access in some way, where I will display a panel that most users wouldn't normally want to see. Issues I am having with this are