<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>farp.blog &#187; fullscreen</title>
	<atom:link href="http://fredandrandall.com/blog/tag/fullscreen/feed/" rel="self" type="application/rss+xml" />
	<link>http://fredandrandall.com/blog</link>
	<description>Bloggin&#039; about whatever</description>
	<lastBuildDate>Tue, 04 Nov 2014 07:15:30 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>How to make your app open in full screen on Lion</title>
		<link>http://fredandrandall.com/blog/2011/09/08/how-to-make-your-app-open-in-full-screen-on-lion/</link>
		<comments>http://fredandrandall.com/blog/2011/09/08/how-to-make-your-app-open-in-full-screen-on-lion/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 02:37:03 +0000</pubDate>
		<dc:creator><![CDATA[Randall]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[fullscreen]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[objc]]></category>

		<guid isPermaLink="false">http://fredandrandall.com/blog/?p=540</guid>
		<description><![CDATA[One of Lions new features is full screen apps. Full screening an app is supposed to remove all distractions and make room for more of the app&#8217;s UI. Actually implementing this in your app is quite simple, but finding how &#8230; <a href="http://fredandrandall.com/blog/2011/09/08/how-to-make-your-app-open-in-full-screen-on-lion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://fredandrandall.com/blog/wp-content/uploads/2011/09/Screen-Shot-2011-09-08-at-10.21.08-PM.png"><img class="alignleft size-full wp-image-543" title="Screen Shot 2011-09-08 at 10.21.08 PM" src="http://fredandrandall.com/blog/wp-content/uploads/2011/09/Screen-Shot-2011-09-08-at-10.21.08-PM.png" alt="" width="77" height="75" /></a>One of Lions new features is full screen apps. Full screening an app is supposed to remove all distractions and make room for more of the app&#8217;s UI. Actually implementing this in your app is quite simple, but finding how to do it online can be a bit tricky.</p>
<p>There are two ways to do it, one is with NSApplication and the other is with NSWindow.</p>
<p>To do it with NSApplication, you&#8217;ll make this simple call</p>
<pre class="brush: objc; title: ; notranslate">
   [[NSApplication sharedApplication]
           setPresentationOptions:NSFullScreenWindowMask];
</pre>
<p>To do it with NSWindow you&#8217;ll make this one</p>
<pre class="brush: objc; title: ; notranslate">
   [window setCollectionBehavior:
             NSWindowCollectionBehaviorFullScreenPrimary];
</pre>
<p>There is also an <code>NSWindowCollectionBehaviorFullScreenAuxiliary</code> that you can use to allow auxiliary windows to show up in the space with the main window.</p>
<p>Calling either of these methods will add the resize button to the upper right corner of the window. You can call them at any time also. If you want it to be in the app all the time, call it somewhere like <code>applicationDidFinishLaunching</code>.</p>
<p>One thing to remember is that fullscreen functionality like this is LION ONLY. If you&#8217;re using this in an app that targets more than 10.7, make sure to do the appropriate checks around this code.</p>
]]></content:encoded>
			<wfw:commentRss>http://fredandrandall.com/blog/2011/09/08/how-to-make-your-app-open-in-full-screen-on-lion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
