Re: LSUIElement application and coming to the front
Re: LSUIElement application and coming to the front
- Subject: Re: LSUIElement application and coming to the front
- From: Matt Neuburg <email@hidden>
- Date: Thu, 23 Oct 2008 10:40:57 -0700
- Thread-topic: LSUIElement application and coming to the front
On Wed, 22 Oct 2008 11:47:01 -0700, Nick Beadman <email@hidden> said:
>I am working on an application which is a floating palette that only
>appears when another application is frontmost. I have set LSUIElement
>in the Info.plist but when the palette comes to the front my
>application becomes active keyboard shortcuts no longer work in the
>other application.
I know this isn't quite the answer you want, but one approach is to give up
on LSUIElement and just have a normal app. Your app can watch what app is
frontmost and show and hide itself accordingly, and can intrude its palette
so that it is in front even when the other app is actually frontmost (using
NSFloatingWindowLevel), thus calling attention to itself as a window
supplementary to the other app, but there is still a distinction, and when
the user actually clicks on the palette to use it, your app comes to the
front. I use this approach and I and my users find it a lot less confusing
than e.g. what Help Viewer does in Leopard (which is simply horrendous
IMHO). m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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