I'm trying to hide the cursor when in full-screen mode on Lion but the
CGDisplayHideCursor call immediately takes the display out of full-screen mode.
It doesn't matter which call comes first, I get the same result every time.
Here's the code:
- (void)applicationDidFinishLaunching:(NSNotification*)notification
{
if ( NO == [[NSUserDefaults standardUserDefaults] developerMode] )
{
// disable idle and display sleep
[self disableDisplaySleep];
[self disableIdleSleep];
// enter full-screen mode
[self.window toggleFullScreen:self];
// hide cursor (mouse pointer)
CGDisplayHideCursor(kCGDirectMainDisplay);
}
// create views and pass in model for binding
menuViewController = [[JTVMenuViewController alloc]
initWithPlaylist:self.moviePlaylist];
[menuViewController loadView];
movieViewController = [[JTVMovieViewController alloc]
initWithPlaylist:self.moviePlaylist];
[movieViewController loadView];
movieViewController.delegate = self;
// start with the menu as the main view
[self.window.contentView setWantsLayer:YES];
[self.window.contentView addSubview:menuViewController.view];
}
-Michael
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]