• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SystemUIMode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SystemUIMode


  • Subject: Re: SystemUIMode
  • From: Jeff Harrell <email@hidden>
  • Date: Thu, 3 Jul 2003 17:36:41 -0500

OH, apologies. I didn't read carefully enough.

You should probably be aware, though, that LSUIElement and SystemUIMode
don't mix. Quoth TN2062:

IMPORTANT:
An application using the LSUIElement property in its Info.plist should
not use the SetSystemUIMode API . Also, setting the LSUIElement
property prevents the application from showing up in the Dock.

(Nixed the CC to applescript-studio because that list doesn't take
messages from non-subscribers.)

On Thursday, July 3, 2003, at 05:29 PM, Rhon Fitzwater wrote:

> 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
>>
>
>

--
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.

References: 
 >Re: SystemUIMode (From: Rhon Fitzwater <email@hidden>)

  • Prev by Date: Re: SystemUIMode
  • Next by Date: Re: double to NSString
  • Previous by thread: Re: SystemUIMode
  • Next by thread: Re: SystemUIMode
  • Index(es):
    • Date
    • Thread