Re: Full screen
Re: Full screen
- Subject: Re: Full screen
- From: Seth Willits <email@hidden>
- Date: Tue, 23 Jul 2013 12:06:20 -0700
75% of this code is completely irrelevant, and the one chunk that is relevant (enterFullScreenMode etc) is supposedly commented out.
--
Seth Willits
On Jul 17, 2013, at 7:38 AM, Tibira Botto wrote:
> Hello guys,
>
> I have a problem. I have an application that is running on a Mac mini
> connected to a 42 inch television. When the mac mini starts with the TV
> system is perfect in full screen mode. Problem is when the mac mini starts
> alone and later the TV is turned al my application is not in full screen
> mode and is in another resolution. Anyone have some help?
>
>
> Code:
>
> [self.appWindow setDelegate:self];
>
> [self.appWindow setTitle:@"Iguatemi Digital"];
>
>
>
> [self.appWindow setMinSize:NSSizeFromCGSize(CGSizeMake(1600, 900))];
>
> [self.appWindow setMaxSize:NSSizeFromCGSize(CGSizeMake(1600, 900))];
>
>
>
> /*
>
> [self.appWindow setLevel:NSMainMenuWindowLevel + 1];
>
> [self.appWindow setStyleMask:NSBorderlessWindowMask];
>
> [self.appWindow setFrame:[[NSScreen mainScreen] frame] display:YES];
>
>
>
> [[NSApplication sharedApplication]
>
> setPresentationOptions: NSApplicationPresentationAutoHideMenuBar
>
> | NSApplicationPresentationAutoHideDock];
>
> [[self.appWindow contentView] enterFullScreenMode:[NSScreen
> mainScreen] withOptions:nil];
>
> */
>
>
>
> [self.appWindow setFrame:NSMakeRect(0, 0, 1600, 900) display:YES];
>
> [self.appWindow setBackingType:NSBackingStoreBuffered];
>
> [self.appWindow makeKeyAndOrderFront:nil];
>
> [self.appWindow setLevel:NSMainMenuWindowLevel + 1];
>
> [self.appWindow setStyleMask:NSBorderlessWindowMask];
>
>
>
> buttonsAndHiddenPropertysIdiomas = [[NSMutableArray alloc] init];
>
> [[Globalization getInstance] setLanguage:[[Globalization getInstance]
> Idioma]];
>
>
>
> //sobreIguatemiController = [[Sobre_IguatemiViewController alloc]
> initWithNibName:@"Sobre" bundle:nil];
>
> mapaController = [[MapaViewController alloc] initWithNibName:@"Mapa"
> bundle:nil];
>
> //lojasController = [[LojasViewController alloc] initWithNibName:@"Lojas"
> bundle:nil];
>
> //destaquesController = [[DestaquesViewController alloc]
> initWithNibName:@"Destaques" bundle:nil];
>
> //cinemaController = [[CinemaViewController alloc]
> initWithNibName:@"Cinema"
> bundle:nil];
>
> //servicosController = [[ServicosViewController alloc]
> initWithNibName:@"Servicos"
> bundle:nil];
>
> //contatoController = [[ContatoViewController alloc]
> initWithNibName:@"Contato"
> bundle:nil];
>
>
>
> NSImage* image = [NSImage imageNamed:@"background.png"];
>
> [image setSize:NSSizeFromCGSize(CGSizeMake(1600, 900))];
>
> [self.largeBackgroundView setImage: image];
>
> [self.topImageView setImage: [NSImage imageNamed:@"header_bg.png"]];
>
> [self.footerImageView setImage: [NSImage imageNamed:@"footer_bg.png"]];
>
> [self.mainView setNeedsDisplay:YES];
>
>
>
> connectorViewController = [[SDK_VC_connect alloc] initWithViewController
> :nil];
>
>
>
> NSFont *txtFont = [NSFont fontWithName:@"Armata-Regular" size:36];
>
> buttons = [[NSMutableArray alloc] init];
>
> [buttons addObject:[[ButtonFromMenu alloc] initWithButton: self.btnSobre
> title:@"" color:[CustomFunctions colorFromHexRGB:@"c3c3c3" withAlpha:0.0]
> font:txtFont]];
>
> [buttons addObject:[[ButtonFromMenu alloc] initWithButton: self.btnMapa
> title:@"Mapa" color:[CustomFunctions colorFromHexRGB:@"7ac47c"] font
> :txtFont]];
>
> [buttons addObject:[[ButtonFromMenu alloc] initWithButton: self.btnLojas
> title: @"Lojas" color:[CustomFunctions colorFromHexRGB:@"b97ac4"] font
> :txtFont]];
>
> [buttons addObject:[[ButtonFromMenu alloc] initWithButton: self.
> btnDestaques title:@"Destaques" color:[CustomFunctions colorFromHexRGB:
> @"7a9dc4"] font:txtFont]];
>
> [buttons addObject:[[ButtonFromMenu alloc] initWithButton: self.
> btnCinema title:@"Cinema" color:[CustomFunctions colorFromHexRGB:@"c83e3e"]
> font:txtFont]];
>
> [buttons addObject:[[ButtonFromMenu alloc] initWithButton: self.btnSobre
> title:@"Serviços" color:[CustomFunctions colorFromHexRGB:@"c3c3c3"] font
> :txtFont]];
>
> [buttons addObject:[[ButtonFromMenu alloc] initWithButton: self.
> btnContato title:@"Contato" color:[CustomFunctions colorFromHexRGB:@"c5bc89"]
> font:txtFont]];
>
>
>
> promocoesArray = [[NSMutableArray alloc] init];
>
>
>
> [self.btnIdioma setImage:[NSImage imageNamed:@"flag_brasil"]];
>
> [self.btnIdioma setTarget:self];
>
> [self.btnIdioma setAction:@selector(choiceIdioma)];
>
>
>
> [self.btnComoChegar setFont:[NSFont fontWithName:@"Armata-Regular" size:
> 24]];
>
>
>
> [self.labelPromocao setTextColor:[CustomFunctions colorFromHexRGB:
> @"ffffff"]];
>
> [self.labelPromocao setFont:[NSFont fontWithName:@"Armata-Regular" size:
> 24]];
>
>
>
> promocaoAtual = 0;
>
>
>
> [self reloadTitles];
>
>
>
> mapaController.isShownOndeEstou = YES;
>
> [self.btnMapa performClick:self];
>
>
>
> macNumber = [NetworkFunctions getMACAddress];
>
> NSLog(@"MAC: %@", macNumber);
>
>
>
> NSString* path = [ArchiveFunctions getInternalPath];
>
> path = [path stringByAppendingString:@"Config/client_config.txt"];
>
> ClientInfoConnection *clientConfig = [[ClientInfoConnection alloc]
> initFromFileConfig:path];
>
> NSInteger standByTime = clientConfig.standByTime;
>
>
>
> [self restartStandByTimer: standByTime]; //inicia o timer do
> standby
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
References: | |
| >Full screen (From: Tibira Botto <email@hidden>) |