Send notification to Mountain lion notification center

Notifications in Mountain Lion are handled by two classes. NSUserNotification and NSUserNotificationCenter. NSUserNotification is your actual notification, it has a title, a message etc. that can be set via properties. To deliver a notification that you’ve created, you can use the deliverNotification: method available in NSUserNotificationCenter. The Apple docs have detailed information on NSUserNotification & … Read more

How to simulate a retina display (HiDPI mode) in Mac OS X 10.8 Mountain Lion on a non-retina display?

Search for, download, and install Apple’s free Additional Tools for Xcode 8 (for previous Xcode releases search for Graphics Tools for Xcode according to your version). Note: free Apple Developer account required. Launch Quartz Debug application. Go to menu: Window —> UI Resolution. Check Enable HiDPI display modes. Quit Quartz Debug. Open System Preferences. Select … Read more

Install Simulator SDK 4.3 to Xcode 4.4 on Mountain Lion

I’ve looked into it, and this is a deliberate behavior from Apple. Here is an (edited) extract of the cache for Xcode download locations: ~/Library/Caches/com.apple.dt.Xcode/Downloads/eded78df8bfabaf6560841d10cf8e53766f74f28.dvtdownloadableindex <dict> <key>source</key> <string>http://adcdownload.apple.com/ios/ios_simulator__resigned/ios_43_simulator.dmg</string> <key>identifier</key> <string>Xcode.SDK.iPhoneSimulator.4.3</string> <key>name</key> <string>iOS 4.3 Simulator</string> <key>userInfo</key> <dict> <key>InstalledIfAllPathsArePresent</key> <array> <string>$(DEVELOPER)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk</string> </array> <key>ActivationPredicate</key> <string>$MAC_OS_X_VERSION < “10.8.0”</string> </dict> </dict> Note the explicit “ActivationPredicate: $MAC_OS_X_VERSION < 10.8.0” setting, which … Read more

What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

From the Apple Developer Forum (account required): “The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions. -mmacosx-version-min tells the tools what OS versions you need to work with, so the tools can disable optimizations that won’t run on those OS versions. If you need … Read more