Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open windows in frontmost...



In my experience, you should also remember the app that was active before you "stole the scene". That way you can set it back when you're all done, instead of leaving the user dangling in the confusing "faceless background app is frontmost" zone. Use the Carbon routine GetFrontProcess to figure out who's front when you bust in, and then SetFrontProcess back to it when you're through.

Daniel

On Saturday, August 23, 2003, at 12:11 PM, Andreas Mayer wrote:

Am Samstag, 23.08.03 um 19:29 Uhr schrieb daniele:

No, I think. Is an NSStatusItem application... you can tell it from the menu bar but it is not the front most app....


This works for me in that case:

[NSApp activateIgnoringOtherApps:YES];
[window makeKeyAndOrderFront:self];


bye. Andreas.
_______________________________________________
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.
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.