Fwd: LSUIElement and LSBackgroundOnly
Fwd: LSUIElement and LSBackgroundOnly
- Subject: Fwd: LSUIElement and LSBackgroundOnly
- From: Chad Jones <email@hidden>
- Date: Wed, 13 Jul 2005 13:01:57 -0600
Having said that LSUIElement is recommended and LSUIElement is
depreciated because they want to limit use of the older flag
Opps that should be "Having said that LSUIElement is recommended and
NSUIElement is depreciated"! One letter typo there can make a huge
difference! Sorry about that. Chad. :-)
Begin forwarded message:
From: Chad Jones <email@hidden>
Date: July 13, 2005 12:48:09 PM GMT-06:00
To: Stefan Schüßler <email@hidden>, Eric Schlegel
<email@hidden>
Cc: Andreas Mayer <email@hidden>, cocoa-dev List
<email@hidden>
Subject: Re: LSUIElement and LSBackgroundOnly
Hi again, :-) [if you are EricS see below!]
My application's icon should be hidden from the Dock.
The first version of my software had LSUIElement set in it's
Info.plist but the Icon still appeared on some systems (I received
bug reports).
The current version, has both keys, LSUIElement and
LSBackgroundOnly set:
<key>LSBackgroundOnly</key>
<string>1</string>
<key>LSUIElement</key>
<string>1</string>
On 13.07.2005, at 10:48, Chad Jones wrote:
I believe that you can't have an application which is simultaneously
a UIElement app and a Background only app. Please check the
documentation on these flags. :-)
I couldn't find anything about incompatibility in the docs.
However, how do I keep the Dock from showing my application's Icon if
LSUIElement is not working?
Does this make any sense to anyone?
Are we supposed to use deprecated (NSUIElement) and undocumented
(zLSUIElement) keys?
NSUIElement is depreciated. However, I remember clearly from working
at Apple (Apple DTS) a few years back that NSUIElement and LSUIElement
map to the same thing (at least it did back when I was there and I
doubt that would have changed). Though NSUIElement is depreciated (NS
stands for next step of course! and LS stands for launch services),
they are exactly the same thing for all intents and purposes. Having
said that LSUIElement is recommended and LSUIElement is depreciated
because they want to limit use of the older flag (why I never
understood that, maybe they just like the LS flags better for
consistencey). In any case use LSUIElement (good!) and not
NSUIElement (bad!).
I couldn't find anything about incompatibility in the docs.
Last night I believed I remembered having a conversation with Eric
Schlegel back when I was working on the Kiosk stuff (technote TN2062)
that he said we never had to worry about an application being a
UIElement and a Background-Only application at the same time. That's
why FAQ #5 has the "Important Note:" in that technote. However, now I
think I might have been mistaken. I think what the actual
conversation was, was that an application should never be a UIElement
and a Kiosk application at the same time (something like that). In
any case the person to ask on this is Eric perhaps he can shed some
light.
Eric do you recall what is the case here can an application be a
UIElement and simaltanously a background only application?
Also, as to Stefan's original question he doesn't want his application
in the Dock but he's having issues with LSUIElement (bug reports?).
Any ideas on this?
Thanks Eric sometimes I don't know how you do it (ok MOST/ALL times I
don't know how you do it!). OK see ya. :-)
Thanks again Eric.
Chad. :-)
Original question below:
My application's icon should be hidden from the Dock.
The first version of my software had LSUIElement set in it's
Info.plist but the Icon still appeared on some systems (I received
bug reports).
The current version, has both keys, LSUIElement and LSBackgroundOnly
set:
<key>LSBackgroundOnly</key>
<string>1</string>
<key>LSUIElement</key>
<string>1</string>
However, I'm getting curious feedback. Some say it finally works now
but others report that the Dock icon appears since they have
upgraded to the new version and everything was fine before.
All users are running Mac OS X 10.4.x.
What am I doing wrong? Any help would be appreciated.
Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden