Re: LSUIElement problems
Re: LSUIElement problems
- Subject: Re: LSUIElement problems
- From: Hsu <email@hidden>
- Date: Sat, 1 Nov 2003 12:46:17 -0800
Replying to myself, something like the following:
// In 10.3 we have to touch the app bundle, or this won't work
[[NSFileManager defaultManager] changeFileAttributes:[NSDictionary
dictionaryWithObject:[NSDate date] forKey:NSFileModificationDate]
atPath:[[NSBundle
mainBundle] bundlePath]];
Karl
On Nov 1, 2003, at 10:15 AM, Hsu wrote:
LaunchServices is caching the information. "touch" the application
bundle (MyApp.app) to let LaunchServices know that something has
changed.
Karl
On Nov 1, 2003, at 1:43 AM, Benjamin Salanki wrote:
Hi everyone!
Seems like Panther, the big bad black cat has caused me some problems.
In an app I wrote I offer the user to choose whether he/she wants to
run the application in normal mode, i.e. showing up in the dock, or in
"faceless mode", without an icon in the dock.
I did this by adding the entry LSUIElement and setting its value to a
string "1" to the package's Info.plist file, or removing it when the
user chooses to have the icon displayed.
Now this worked perfectly up until Panther showed up. Now for whatever
reason the system fails to recognize the change until I log out and
then back in again.
This is driving me mad because I can find no apparent reason. Does
anyone have a solution for this?
Any thought are greatly appreciated.
Thanks,
Benjamin Salanki
stupidFish23
http://www.stupidfish23.com
_______________________________________________
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.
--
That sounds cool... you're on it!
Nooo.... I was on sandwiches.
Sarah - you're on System design,
Clara - you're on world building,
Jennifer - you're on PCP.
Qualia gets to be the editor.
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
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.
--
Think "HONK" if you're a telepath!
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
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.