Re: SystemUIMode
Re: SystemUIMode
- Subject: Re: SystemUIMode
- From: Rhon Fitzwater <email@hidden>
- Date: Thu, 3 Jul 2003 18:29:41 -0400
I am already using LSUIElement. But this just makes it so you cannot
force quit the program. What I want are the effects of the
SystemUIMode. Download the sample from Apple here:
http://developer.apple.com/technotes/tn2002/downloads/tn2062_1.hqx
Below is the code I need to add to my app. Does anyone know how I can
do this?
-(void) awakeFromNib
{
SystemUIMode CurrentUIMode;
SystemUIOptions CurrentUIOptions;
OSStatus Error;
CurrentUIMode = kUIModeAllHidden;
CurrentUIOptions = kUIOptionDisableProcessSwitch |
kUIOptionDisableForceQuit;
Error = SetSystemUIMode(CurrentUIMode, CurrentUIOptions);
}
Thanks,
-Rhon
On Thursday, July 3, 2003, at 06:18 PM, Jeff Harrell wrote:
On Thursday, July 3, 2003, at 02:10 PM, Rhon Fitzwater wrote:
Now what I need to know is how can I add this to my applescript
studio app?
You may not have to. There are two ways in which I'm about to be wrong
here: either (1) I misunderstood your intention, or (2) AppleScript
Studio applications aren't normal application packages. If either one
of those is true, then I'm about to look like an idiot.
Simply add this to your Info.plist:
<key>LSUIElement</key>
<string>1</string>
You can (maybe!) find this file at (something).app/Contents/Info.plist.
Launch Services should take care of the rest. Maybe. ;-)
--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.