SystemUIMode
SystemUIMode
- Subject: SystemUIMode
- From: Rhon Fitzwater <email@hidden>
- Date: Thu, 3 Jul 2003 15:10:00 -0400
I have an application I wrote with Applescript Studio. It works and
does everything I need it to. But now I would like to add a feature to
it.. what I need to do is add the code to change the systemuimode.
I looked at apples UsingSystemUIModeCocoa example and am trying to use
the mode kUIModeAllHidden
by changing some code in the example I was able to get the mode I want
by using this:
-(void) awakeFromNib
{
SystemUIMode CurrentUIMode;
SystemUIOptions CurrentUIOptions;
OSStatus Error;
CurrentUIMode = kUIModeAllHidden;
CurrentUIOptions = kUIOptionDisableProcessSwitch |
kUIOptionDisableForceQuit;
Error = SetSystemUIMode(CurrentUIMode, CurrentUIOptions);
}
I just modified the subroutine...Now when I build and run the example
app, it is how I want my app to be, no dock, or menubar, etc. etc.
Now what I need to know is how can I add this to my applescript studio
app?
Does anyone have any suggestions?
Thanks,
-Rhon
_______________________________________________
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.