www.wallcity.org | Zack Smith

Sample NSStatusItem Application

ScriptMenu

Here is the sample NSStatusItem Application
mentioned in my slides at Mac Tech Conf 2011 can be found here:

https://github.com/acidprime/StatusItem/downloads

Converting a Check Box value to Boolean

Here is simple little objective c method that will take a IBOutlet and query its value to return a boolean. I typically need to do this to run a logical test on the interface value. My guess is properties & bindings are the better way to do this but as BOOL is not an object I am not quite sure how that would be done.

-(BOOL)evaluateCheckBox:(NSButton *)evalButton
{
	// Gather data from interface
	if ( [evalButton state] == NSOnState ){
		return YES;
	}
	if ( [evalButton state] == NSOffState ){
		return NO;
	}
}

iPhone 4.0 O.S. Killing iPad Applications? [ IPAD ]

It occurred to me today while looking at my email, that perhaps Apple should have timed things a bit better with the O.S. 4 roll out and SDK, now as an application developer, you have to work on two fairly major forks in the road and my guess is most will opt for the larger market share. Who knows, but I wonder what Facebook is working right now as the priority?

Make Window Full Screen [ Cocoa ]

You will need to edit your Applications Info.plist

</p>
<p class="p1"><dict></p>
<p class="p2"><span class="s1"> </span><span class="s2"><key></span>CFBundleDevelopmentRegion<span class="s2"></key></span></p>
<p class="p1"><span class="s1"> </span><string><span class="s3">English</span></string></p>
<p class="p2"><span class="s1"> </span><span class="s2"><key></span>LSUIPresentationMode<span class="s2"></key></span></p>
<p class="p1"><span class="s1"> </span><real><span class="s3">4</span></real></p>

</code>

And then use the following method, make sure to add a quit button linked to First Responder's terminate just for good measure. Read more »