Monthly Archives: July 2012

Objective-C execute once


Making code run only once is simple with Objective-C:

static dispatch_once_t once;  dispatch_once(&once, ^ {  // Code to run once  });  

Make sure that you properly define once variable.

Make Spaces Useable Again on Your Mac [Annoyances] (Lifehacker)

Posted by Adam Pash at Lifehacker

Apple introduced the multi-desktop management tool Spaces way back in OS X 10.5 Leopard, and it was great… until they laid waste to it in Lion (and now, Mountain Lion). If you’re a Spaces lover, here’s how to bring back the spaces you know and love. More »

Get Mountain Lion Hacker-Friendly with This Huge List of Command Line Tricks [Os X Mountain Lion] (Lifehacker)

Posted by Thorin Klosowski at Lifehacker

OS X Mountain Lion changes a lot of small things with the way the operating system works. It also locks down a lot of default behaviors that many people were used to in OS X Lion. Thankfully, a group over at Github has compiled a huge list of the command line tricks that still work in Mountain Lion. More »

Top 10 Secret Features of OS X Mountain Lion [Lifehacker Top 10] (Lifehacker)

Posted by Adam Dachis at Lifehacker

OS X Mountain Lion was released this week and we’ve told you everything you need to know about Apple’s new operating system—except one thing: the secret features. With over 200 small changes, a few of them were bound to be awesome. Here are our top ten favorites. More »

See the Actual Signal Strength on Your iPhone or Android [IPhone] (Lifehacker)

Posted by Melanie Pinola at Lifehacker

iPhone: Ever feel tricked by your phone’s signal bars into thinking you have a better reception that you actually do? This simple hack will transform those bars to show the actual signal in decibels (dBm). No jailbreaking is required and it’s reversible. More »

How to disable the iCloud Open dialog in Mountain Lion (

Posted by (author unknown) at
Mountain Lion introduced a new Open dialog to reflect iOS behavior. This dialog appears in TextEdit and Preview when you launch them, and you can’t disable it in the applications’ preferences.

The only way to disable the iCloud open dialog is to uncheck Documents & Data in the iCloud pane of System Preferences. This also disables the default iCloud destination in Save dialogs.

Add to digg
Add to Reddit
Add to Slashdot
Email this Article
Add to StumbleUpon

Using X11 in Mountain Lion (

Posted by (author unknown) at
Mac OS X 10.8 no longer includes X-11 as an option. If you need to run software that requires X-11, you have to install XQuartz 2.7.2 or later.

You can download XQuartz 2.7.2 at

[kirkmc adds: I haven’t tested this. I haven’t needed X11 for donkeys’ years.]

Add to digg
Add to Reddit
Add to Slashdot
Email this Article
Add to StumbleUpon

Quick tip: Create a USB installer for Mountain Lion (Apple)

Posted by Geoffrey Goetz at Apple

Perhaps you have a fast broadband connection at home or work and downloading multiple copies of OS X Mountain Lion from the Mac App Store to update a few computers is not an issue.  But there are times when it’s more useful to have a means to install OS X from an external source.  The following is a quick guide to help you create a USB installer for Mountain Lion, very similar in fact to the OS X Lion USB Thumb Drive Apple use to sell with previous versions of OS X.

Step One - Extract the Drive Image

Step 1: Extract the drive image

After purchasing and downloading the OS X Mountain Lion update and before actually updating your Mac, navigate to your Applications folder in the Finder and right click on the file “Install Mac OS X Mountain” and select “Show Package Contents.”  Look in the “Shared Support” folder located under the “Contents” folder of the “Install Mac OS X Mountain,” and copy the file named “InstallESD.dmg” to your desktop.  This file is a bootable disk image of OS X with the Mountain Lion Installer already installed.  You will need this file in step three.

Step Two - Erase a USB Drive

Step 2: Erase a USB drive

Take a thumb drive that has at least a 8GB capacity, and connect it to your Mac. Launch the Disk Utility application located in your Application’s Utilities folder.  Once it is running you will see a list of the mounted drives connected to your Mac. Make sure there are no files you need on the drive, then select the USB drive, and click on the Erase tab to the right.  Select Mac OS Extended (Journaled) as the Format, set the Name to “Mac OS X Installer” and click on the Erase button.

Step Three - Restore the Drive Image

Step 3: Restore the drive image

Now select the “Mac OS X Installer” you created in step two, and click on the Restore tab to the right.  You want to set the Source as the ”Mac OS X Installer ESD,” which is located within the “InstallESD.dmg” file you copied in step one.  Then set the Destination to be the “Mac OS X Installer” partition you created in step two.  You can drag and drop the items in the list on the left of the Disk Utility, into their appropriate Source and Destination settings on the right.  If you do not see the “InstallESD.dmg” file listed, use the Image button and locate it on your desktop.  Click on the Restore button once everything is set correctly.

And that’s it.  Once the process is complete, you will have your own backup installer for OS X Mountain Lion that you can use to install on your Mac, or restore it should something go terribly wrong.  When you boot your Mac, be sure that the USB thumb drive is inserted, and hold down the option-key when the Mac starts up.  You will be presented with a list of drives.  Simply select the “Mac OS X Installer” you just created on your USB drive and you will be ready to install OS X Mountain Lion on your Mac.

Turn off ads in Parallels Desktop (

Posted by (author unknown) at
The latest version of Parallels Desktop apparently has the sleazy feature of displaying ads, even though you’ve paid for the software. Simone Magnelli tweeted a defaults command that you can use to turn them off:

defaults write com.parallels.Parallels\ Desktop ProductPromo.ForcePromoOff -bool YES

Now I don’t use Parallels – I use VMware Fusion – and I’m glad I don’t. I haven’t tested this, so if someone could confirm that it works, and post in the comments, I’d appreciate it.

Add to digg
Add to Reddit
Add to Slashdot
Email this Article
Add to StumbleUpon

PaperFold (Cocoa Controls)

Posted by Cocoa Controls at Cocoa Controls
PaperFold is a simple iOS control that allows hiding of views on the left and right side of the screen by dragging the middle view. The left view supports only 1 fold. The right view supports variable number of folds.

image of this control

WP Like Button Plugin by Free WordPress Templates