|
|
Hide from Dock, but not Expos�?
|
|
|
|
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status:
Offline
|
|
I use CocoaDialog in one of my apps. In case you're not familiar with it, all it is is an app that launches, displays a dialog with the specified text and buttons, and then returns the user's response. As it is a full, standalone app, it has its own icon in the dock when it's launched, and then disappears when the user dismisses the dialog.
I modified its Info.plist to hide the app from the dock (I set LSUIElement to 1). This is great, as my app no longer needs to show second icon in the dock every time it displays a dialog. However, setting LSUIElement to 1 also makes the dialogs disappear when Expos� is activated. Is there any way around this?
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
I think LSBackgroundOnly will do what you want.
By the way, if you have a GUI app with a Dock icon, what is the point of Cocoa Dialog? I thought the point was that you could call it from scripts to get input from the user.
(
Last edited by Chuckit; Jan 10, 2005 at 02:15 PM.
)
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status:
Offline
|
|
So in other words, set LSBackgroundOnly to 1, and leave LSUIElement out entirely?
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Yes. LSBackgroundOnly is similar to LSUIElement, but it does things slightly different.
Just as a disclaimer, I'm not sure it works for this, but I seem to remember it working last time I tested it.
EDIT: I checked, and it turns out that disappearing when Expose is activated is a property of the kind of dialog that CocoaDialog displays. It will happen regardless of what's in the Info.plist.
(
Last edited by Chuckit; Jan 10, 2005 at 02:45 PM.
)
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|