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
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
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
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
_
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*
• 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