Re: to raise another cocoa app's window from the dock
Re: to raise another cocoa app's window from the dock
- Subject: Re: to raise another cocoa app's window from the dock
- From: email@hidden
- Date: Tue, 4 Nov 2008 11:07:06 +0100
You can do this using the Accessibility APIs. (I know I've done it)
Unfortunately I no longer have access to the source code of the ap I
did it in, but its not too tricky.
Once you have read up on Accessibility, you just want to change the
kAXMinimizedAttribute of an AXWindow.
Matt Gough
On 3 Nov 2008, at 21:36, Nick Rogers wrote:
Have searched the net a lot and even tried AppleScript-enabling the
app, but nothing would work.
My app should be able to bring to front another cocoa app's window
to the front.
I have tried SetFrontProcess(), but all it does is to bring the
menus to the front and not the minimized window of another app.
This is possible and also without AppleScript, as I have seen
another commercial app (unrelated) do the same thing (i.e. raising
the minimized window to the front).
That app's dictionary doesn't show in script editor, so I guess they
may have done it without AppleScript.
Please help.
Wishes,
Nick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden