• 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: Ricky Sharp <email@hidden>
  • Date: Fri, 15 Sep 2006 06:31:41 -0500

On Thursday, September 14, 2006, at 11:39PM, Frank Young <email@hidden> wrote:

>In my application, I'm trying to change the SystemUIMode when the
>application launches. The developer documetation says that thecall
>needs to be made like this:
>
>OSStatus SetSystemUIMode(
>             SystemUIMode inMode,
>             SystemUIOptions inOptions);
>
>What I would like to do is have my particular UIMode activate every
>time that the application is launched which would be here in the .m
>file:
>
>- (void)windowControllerDidLoadNib:(NSWindowController *) aController
>{
>     [super windowControllerDidLoadNib:aController];
>     // Add any code here that needs to be executed once the
>windowController has loaded the document's window.
>	[webView setUIDelegate:self];
>	[webView setGroupName:@"MyDocument"];
>	[urlString setStringValue:defaultHP];
>	[[webView mainFrame] loadRequest:
>			[NSURLRequest requestWithURL:
>			[NSURL URLWithString:defaultHP]]];
>	[webView setFrameLoadDelegate:self];
>	[webView setResourceLoadDelegate:self];
>}

I also use that API, but placed it as one of the first lines in -applicationDidFinishLaunching:

>I'm just unsure as to what the correct syntax would be when calling
>the method right there. Anyone have any clues?

It's just a C API, so call it like you would any C function.  The returned status code (error) will be set to 0 upon success.

See <http://developer.apple.com/technotes/tn2002/tn2062.html> for a definition and examples of that API.

--
Rick Sharp
Instant Interactive(tm)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >SystemUIMode (From: Frank Young <email@hidden>)

  • Prev by Date: Re: Bindings / Core Data: Ensuring a value is unique
  • Next by Date: Re: Key Search Problem with NSPopUpMenu in IB
  • Previous by thread: SystemUIMode
  • Next by thread: Mixing Chinese and Japanese text
  • Index(es):
    • Date
    • Thread