Here is how to enable full screen mode for AIR Mac Desktop Apps

I just discovered that with a very simple native extension method, I can enable full screen mode for AIR Mac Desktop Applications.
This gets you the full screen icon in the top right, and it works perfectly with no changes to my code. (Obviously only works on Lion and above, since this is a Lion feature)
Enjoy.
Here's the code:
    FREObject _EnableFullScreenMode(FREContext ctx, void* functionData, uint32_t argc, FREObject argv[])
        //We should be okay to do this, even on 10.6, according to this post:
        //http://www.cocoabuilder.com/archive/cocoa/311124-implementing-full-screen-for-10-7-but-app-should-also-run-on-10-6.html
        //We can't use [NSApp mainWindow] - didn't appear to work
        //This seems to though:
        NSArray * allWindows = [NSApp windows];
        if (allWindows.count > 0)
            NSWindow *mainWindow = [allWindows  objectAtIndex: 0];
            NSWindowCollectionBehavior behavior = [mainWindow collectionBehavior];
            behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
            [mainWindow setCollectionBehavior:behavior];
        //TODO: Return a boolean instead depending on if we found the main window
        return NULL;

Press Control + Command + F on your keyboard to enter or exit full screen mode.

Similar Messages

  • How to enable full screen mode by default?

    How do I enable full screen mode in apps by default?

    There is no mechanism in the OS for that.
    Some apps will reopen the mode you left them.
    charlie

  • How to enter full screen mode in email?

    Can we enter full screen mode when reading an email in landscape mode? I can see safari has already provide this feature. It is really useful for reading  wide pages using iPhone 5 with a longer screen. But I don't know how to use this feature for email. In landscape mode, there are 2 email menus plus the system bar, which occupy too many screen. Any idea on how to enter full screen mode?
    Thanks.

    Ok, hope this will be added in the next release.

  • Can anyone tell me how to exit full-screen mode in mail?

    Can anyone please tell me how to exit full-screen mode in mail?

    Thanks, QuickTimeKirk.
    It was getting really frustrating being locked into that big screen!

  • HT1947 If you add music VIDEOS to Up Next playlist, then go to look at the album cover playing screen, then go to add another song from diff playlist, no longer can see Up Next, just go to full screen mode button. Using remote app iphone 5 to play out of

    If you add music videos to Up Next playlist, then go to look at the album cover playing screen, then go to add another song from different playlist, you no longer can see Up Next, just go to full screen mode button. Using remote app iPhone 5 to play out of iTunes. It looks like it works fine for regular music, but for music videos you can't see your up next unless you go back on the computer to change once you've left the screen. When using the remote app, you shouldn't need to go to iTunes on the PC to view or edit Up Next already added. See first image, you can hit upper right and get back to Up Next (second image). Third image is music video, where you can't get back to Up Next, just swap between full screen and not. I hoped 3.0.1 would have the answer, no luck!

    wow, very nice review Makes me want to get a vision for myself.
    WebKnight wrote:
    <SPAN>
    Add the ability to randomly select a new background from a pre selected group of photos every time the player is turned on or each day.
    I would love that feature. I can't stand useing my computer with a single wall paper anymore (I have 500 anime pics that i rotate between every 2 mins ) If you could make the vision rotate background every x minutes or every time the player is turned on, it would be totally amazeningly sweet!!!! (i might have to go out and buy one then :P)
    I just hope that creative has better firmware support with the vision than they have had with the touch.
    Once again, great review

  • How to exit full screen mode while playing a presentation in Keynote '09

    Hi, my question is: when I play a presentation it starts by default in full screen mode; I would like instead to see it in a little box, in order to be able to take notes on another file; how can I do that?

    When playing Keynote will indeed take over the full screen -- there is no option for playing a presentation in a window. However, in the Preferences, under Slideshow, there is an option to enable Expose, which will allow you to switch between a running Keynote presentation and other applications.

  • How to exit full screen mode mail message

    Inexplicably, when i open messages in Mail, they appear in something like full screen mode.   The message viewer window is not in full screen mode, but if i open any message, the message takes up the whole screen. I can drag the message in order to see other things on the desktop, but i can't adjust the size of the window to the size i want, and see no way of exiting full screen mode. I lookd in Help, but it only shows how to enter Full Screen, not how to exit it. 
    In the View menu, there is an option to enter full screen.  When i have the full screen sized message open on top, the enter full screen option in the View menu is greyed out.  If i have the normal sized window for the message viewer window on top, the enter full screen is not grayed out and could be selected.  I do not select it since there appears to be no 'exit full screen' option that i can see and i don't want to multiply this problem.
    I know this might be a silly question, but if they have an enter full screen option, why wouldn't they also have an exit full screen option? 
    Or is there an exit full screen option which exists somewhere that i have not been able to find?  I've searched Apple Discussions and Google but so far have not found a way to un-full screen my Mail messages.  This started this morning.
    Can anyone help?  
    I do not know how it got into full screen mode.  It was not something i did deliberately or knowingly.
    i have tried quitting and restarting Mail but the full screen message mode returns. 
    How can i get my mail messages out of this very annoying and awkward screen hogging mode?
    I have only been using Mail since last November when i got a new MBP with Mountain Lion, which meant that for the first time since 1995, i could not use the simple straightforward faultless Eudroa anymore.  So i have had my struggles with Mail.  Trying to get through it.  This is the most recent of various similar issues, inexplicable problems without apparent solutions.  Sort of Microsoft-like.
    I will be really grateful for any help.. thanks

    Press Control + Command + F on your keyboard to enter or exit full screen mode.

  • How do you exit out of full screen mode for FCPX? ESC does not work.

    Hi guys. I cannot seem to find the exit to full screen viewing mode in final cut pro x. Escape key doesn't do the trick. There are no "exit full screen" buttons that pop up. It is confusing and I have to force quit the program every time I use full screen! Please help!

    There are two full screen modes in FCP X when running in MacOS X Lion.
    Fullscreen playback:
         Enter using the double arrow on the viewer or with command-shift-F.
         Exit with the Escape key.
    Fullscreen editing:
         Enter using the double arrow on the top right of FCP X's windows or control-shift-F.
         Exit using escape or control-shift-F.
    This is how it works for me.

  • How to end full screen mode in screen sharing, how to end full screen mode in screen sharing

    I inadvertently hit the 2 little arrows invoking full screen mode while in the screen sharing app. I can't get out of it now, and returned to the windowed mode. Help says to click the 2 little arrows, but I'm not being given 2 little arrows to click.
    I see the screen sharing window, no border, against what looks like a background of denim.
    pressing esc does nothing.
    thanks for clues!
    ray

    When you move your cursor to the top of the screen the local mac's menu bar will appar out of hiding. The "two arrows" you're looking for are in a blue button on the right hand side of this menu bar.

  • Any 3rd party utilities that fix full screen mode for multi-monitor users?

    I am a multi-monitor user.  As multi-monitor users know, full screen mode is basically useless since if you try to go full screen on one monitor, it causes the other monitor to go blank and become unusable (at least with most programs).  Are there any 3rd party utitilities or fixes for this?
    Thanks

    Spaces, which is what this functionality stems from, was limited in that it used your entire setup and switched all of the screens over; space to space. I never used spaces because I always had multiple monitors and I was always working with multiple apps simultaneously that I wanted to be able to reference while working on the others.
    Now they call Spaces, "mission control" and changed the appearance of it, but the functionality remained the same, each workstation comprised all of your monitors, and would switch over all of them when switching to a new "Desktop".
    Fullscreen apps wrongly assumes that it can take the functionality of the afformentioned MS/Spaces and use it for one app, negating the whole idea of why someone would have multiple screens (real estate to work with other applications).
    If they stop considering multiple monitors as one Workspace, they can then make it so they are asynchronous "tablets" instead of one conjoined entity.
    So, you say people have been asking about this for 2 years, I've been asking for this for 5!
    The issue here is, the only answer is to not use it. Making Mission Control and Fullscreen apps completely ignored by people like us, where I could be using both functions to glide around my work station and three monitors, mixing and matching which apps I want to be viewed on each separate monitor, to perform one single task; together.
    It would actually reward people who wanted to utilize Thunderbolt technology and have more then one monitor.
    There is no telling why apple chose to push out something that would only support the casual user, with one display, but the only direct way to let apple know that we feel limited by the OS is to send feedback. Even though it seems that we are powerless in this situation, I hope that they do consider how to make this function better.
    </rant>

  • How To get Full screen mode on windows 8.1

    I've download Firefox Aurora, and i can't get the application running in metro style (full screen app).
    The Aurora version : 27.0a2 (2013-11-15)
    what to do ?

    hello oxxym.s, please refer to [[How do I install Windows 8 (Metro-style) Firefox?]] (when the article talks about nightly, it's the same for aurora).

  • How to Enable Full Screen Viewing?

    Hi
    I want to upload flv files to my website. I have got it worling fine - insert media - flv - progressive download - etc. When I view the file in the testing server it does not have the option to "view in full screen" which I need as I want to keep the preview windows small and have several videos on the one page. Is there code I need to enter in addition to that generated by Dreamweaver? I'm not familiar with Flash Pro or Media Encoder but I do have access to them if t makes the whole process easier. Thanks in advance

    I know I posted this in the Flash forum but I'm not actually using Flash Pro as I don't have a 64bit computer. Dreamweaver CS5 doesn't have any skins with fullscreen options. What should I be doing to the file before uploading it? I have access to most Adobe products if you can point me in the right direction.
    Cheers

  • How to use full screen mode in Windows Media Player (activex)

    I am trying to write a LV program to display video "full screen" using a WindowsMediaPlayer control (in LabVIEW 8).  Is this not possible?  When I run the code I get an error:
    Error -2147418113 occurred at Property Node
    This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input.
    Anyone have any ideas?
    Thanks,
    Jeremy

    Under LV 7.1 with DSC installed I get the same error code (-2147418113) but "explain error" gives me this.
    "LabVIEW DSC:  (Hex 0x8000FFFF) Catastrophic failure."
    This prompts the question is it possible to set an activeX object running in a container for Full Screen.
    This is probably a Q for MS.
    If it look like it is possible, try to get a VB example and that will tell us what we have to do to make this work.
    Ben
    Message Edited by Ben on 10-31-2005 04:45 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Full Screen Mode for Safari - Questions

    Hi everyone.
    1) When I hit Alt-Tab in Lion to go back to Safari from another desktop and program, and have several full screen Safari windows open, it sends me to a random one. Is there any way to change that? Or should I just train myself to use gestures from now on to sort through my screen lineup?
    2) When I restart my MacBook Pro with my lineup of full screen Safari windows open, it pulls them all back up but, unfortunately, puts them in some sort of random order. Is there any way to save the order of the lineup in the Mission Control at the top? I like my stuff to be set up in a certain way.
    Any answers are very welcome, and thank you in advance for your kind help.

    Check this out. So far seems to be way better than the old YouTube app.
    http://itunes.apple.com/app/jasmine-youtube-client/id554937050

  • HELP! I shut down my macbook pro and now after applications have been in full screen mode for awhile they automatically minimize and it takes me back to the desktop. How do I fix this?

    I shut down my macbook and now while applications such as safari have been open for awhile, even while active, will automatically minimize and it take me back to the desktop.  How do I fix this?

    I should add that this has happened before and I feel like it was a quick un-toggling of a box in my settings, but I can not remember what to do.

Maybe you are looking for