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" <grmrge...@gmail.com> 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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com > > This email sent to davedel...@me.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com