Displaying posts tagged with

“Mac OS X”

Delete Program Preferences in OS X (Including Cache)

Often while debugging an app it’s handy to delete its preferences so it will “start over” like a fresh install. You used to be able to find the .plist file in the Preferences folder and delete it. Simple. Starting with OS X 10.9, preferences are cached. So even after deleting them, they’re still around. Here’s […]

Why I Don’t Care About Swift

Swift is a new programming language created by Apple for use on OS X and iOS devices. The programming world is agog. Apple’s fantastic new language apparently solves all their problems, as evidenced, they say, by the fact that some programmer ported Flappy Birds to it in a few hours. I’ve been around long enough […]

Enabling Web Inspector in Web-Kit WebViews in OS X Apps

You can turn on Safari’s Web Inspector functionality in any app that uses WebView to display HTML. First, enable the Developer menu in Safari’s preferences. Then enter the following command in Terminal: defaults write com.example.myApp WebKitDeveloperExtras -bool true Where com.example.myApp is the bundle identifier for the app. Launch the app, right-click in the WebView, and […]

Symbolicating iOS and OS X Apps

Many of the errors that happen in Mac OS X and iOS apps don’t actually crash the app, they just dump a stack trace to the console. You can view these using the Console app — select the System Log and you’ll see all the messages the app sends to the console. Unfortunately, these stack […]

Objective-C Memory Management

Perhaps I’m showing my age, but I’m getting awful tired of language designers trying to improve on C/C++ memory management. Just for review, here’s how memory management should work: void foo() { // x is created on the stack. It is deallocated at the end of // the block/function and therefore its lifetime matches its […]

Fixing Mac OS X 10.7 “Lion”

Apple has a bad habit of hiring kids who have no concept of what came before them. This article helps you undo some of the changes they inflicted on Mac OS X in their attempt to make it “better”. Reversing the Scrolling Direction In 10.7, using the MacBook trackpad or the scroll wheel on your […]