So far I saw many examples, but not every of them is valid, follow my rules and you will get proper singleton pattern.

in MySingleton.h file:

in MySingleton.m file:

And thats all. The key is to use dispatch_once which will guarantee code inside will be executed only once per whole app lifetime. You can use it like this:

Apple today seeded build 13D28 of OS X 10.9.3 to developers, a little over one week after releasing the third OS X 10.9.3 beta, build 13D21 and three weeks after the first 10.9.3 beta. The beta is available through the Software Update mechanism in the Mac App Store as well as through the Mac Dev Center. Apple is currently asking developers to focus on Graphics Drivers and Audio. As was discovered with the first beta, 10.9.3 adds new support for 4K displays, offering “Retina” resolutions that improve readability along with support for 60Hz output from the Retina MacBook Pro.


command can cause such sample output:

solution is simple, just put:

in terminal, push enter and rerun phpize after brew finishes hiw work

First you have to get NSDateComponents object with year, month and day units:

then extracting each value is simple:

Pretty simple:

and if you want it back:



After five months of availability, OS X 10.9 Mavericks now generates just over 40 percent of all North American OS X-based Web traffic handled by ad network Chitika, almost doubling Mountain Lion’s current 21 percent share.

By comparison, the last-generation OS X 10.8 Mountain Lion took nearly 14 months to reach a 34 percent share and was only at 26.8 percent after seven months on the market.

As for older versions of OS X, 10.7 Lion and 10.6 Snow Leopard both account for 18 percent of Mac traffic, while OS X 10.5 Leopard is at 3 percent. The almost nine-year-old OS X 10.4 Tiger is still running on one percent of machines, while “other OS X” takes the last percent.

Well, first part is quite easy, just go to and grab jre-8-macosx-x64.dmg. After downloading doubleclick and install as normal app. After installation new browser window will be opened so you can run applet to check if new version is working. It should. Now the hard part, go to Terminal and type:

you will see something like:

So does it work or not? Well, it is and it does not. Why? Becouse JRE just installed is only for browser. Apple allows only one JVM (Java Virtual Machine) at same time available for user, for Mavericks its Java 6. So what can we do to make it work also from commandline? Having Terminal opened type:

and now:

this time output will be:

So it seems everything works now. At least until Terminal restart. To make it permanent locate your .profile file (it is in /Users/xxx/.profile where xxx is your username), open it in any text editor and at bottom add:

Using configuration mentioned above you may receive one of those (or another) errors:

Working solution is to remove arm64 from “Standard Architectures” and leave arm64 in “Valid Architectures”