Re: Get ProcessSerialNumber of last front application
Re: Get ProcessSerialNumber of last front application
- Subject: Re: Get ProcessSerialNumber of last front application
- From: Dave DeLong <email@hidden>
- Date: Wed, 09 Feb 2011 08:21:19 -0800
Alternative: instead of bringing another process forwards, tell yours to hide. Then the previously-frontmost app will be frontmost again.
Dave
Sent from my iPhone
On Feb 9, 2011, at 7:23 AM, "Mr. Gecko" <email@hidden> wrote:
> Hello, I am wondering how I can get the last front application ProcessSerialNumber so I can use SetFrontProcess to bring it back to front after they close the window to my application. My application is a UIAgent so it doesn't have a dock icon and I am thinking that the user would like it more if when they close the window to my application it will make the previous application so it's front. The way they open my window is by opening the application via the finder or dock (if they have it in the dock). My application runs in the background to keep track of things and I know my customers would not want a menubar icon as I don't want one as well. I know there is GetFrontProcess, but that is useless when the application becomes front before I call it due to them opening it in the finder and GetNextProcess gets Quick Look Helper.
>
> I hope I explained things well, thanks for any help.
> Mr. Gecko
> _______________________________________________
>
> 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
_______________________________________________
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