Sounds good.

For documenting purposes, here's what I did to get this working:

In the appropriate class, I have an NSMutableArray called "activeApps" and a timer called "appTimer". The timer is scheduled to fire every 0.5 seconds. When it fires, it gets the activeApplication dictionary from NSWorkspace, and compares that to the 0th element in activeApps. If they're different, then the new dictionary is inserted at index 0, and the last element (if the count is greater than 2) is removed.

Whenever I need the second frontmost app, I just get the dictionary at index 1 in activeApps.

Dave

On Apr 28, 2009, at 10:57 AM, Jean-Daniel Dupas wrote:

Don't bother with that. I did a try, and it look like the Process Manager order has nothing to do with the cmd + tab order. it returns -600, probably because psn is the last process in the Process Manager list.
Sorry for the noise.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to