Re: Activate app but bring only *one* window to the front

2011-06-30 Thread Ken Thomases
On Jun 30, 2011, at 3:39 PM, Jerry Krinock wrote: > On 2011 Jun 29, at 10:11, Kyle Sluder wrote: > >> -[NSRunningApplication activateWithOptions:] > > Thank you, Kyle, that works. Indeed, in Mac OS 10.6+, the code > > [[NSRunningApplication currentApplication] > activateWithOptions:NSApplicat

Re: Activate app but bring only *one* window to the front

2011-06-30 Thread Scott Ribe
On Jun 30, 2011, at 2:39 PM, Jerry Krinock wrote: > However, Cocoa still wins. My purpose was to show an alert-type of window > (my own custom version of NSAlert) without bringing forward a document > window. Initially, it works, but when the user clicks a button which sends > -[NSWindow clos

Re: Activate app but bring only *one* window to the front

2011-06-30 Thread Jerry Krinock
On 2011 Jun 29, at 10:11, Kyle Sluder wrote: > -[NSRunningApplication activateWithOptions:] Thank you, Kyle, that works. Indeed, in Mac OS 10.6+, the code [[NSRunningApplication currentApplication] activateWithOptions:NSApplicationActivateIgnoringOtherApps] ; activates the app, but only brin

Re: Activate app but bring only *one* window to the front

2011-06-29 Thread Kyle Sluder
On Wed, Jun 29, 2011 at 10:11 AM, Kyle Sluder wrote: > Never tried it, but +[NSRunningApplication activateWithOptions:] looks > promising. Er, make that -[NSRunningApplication activateWithOptions:]. Combine that with +[NSRunningApplication currentApplication]. --Kyle Sluder _

Re: Activate app but bring only *one* window to the front

2011-06-29 Thread Kyle Sluder
On Wed, Jun 29, 2011 at 10:07 AM, Jerry Krinock wrote: > • App is running with several windows open but is not frontmost. > • It receives an interapplication message which requires that a new window be > opened and brought to the front. > > -[NSApplication activateIgnoringOtherApps:] brings *all*

Activate app but bring only *one* window to the front

2011-06-29 Thread Jerry Krinock
• App is running with several windows open but is not frontmost. • It receives an interapplication message which requires that a new window be opened and brought to the front. -[NSApplication activateIgnoringOtherApps:] brings *all* of app's windows to the front. How can I activate this app but