Re: Bringing app to front
Re: Bringing app to front
- Subject: Re: Bringing app to front
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 14 May 2004 22:27:27 +0100
On 14 May 2004, at 21:08, Bill Houston wrote:
ProcessSerialNumber processSerialNum;
GetCurrentProcess(&processSerialNum);
OSErr persOSErr = SetFrontProcess(&processSerialNum);
with complete success, however it does not seem to work for Cocoa
applications. I would rather not have to rewrite this as a Carbon app
if I
can help it.
Does anyone know how to do this with Cocoa?
AFAIK that should work, but the native Cocoa call for equivalent
functionlity would be -[NSApp activateIgnoringOtherApps:(BOOL)flag]
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.