Displaying posts tagged with

“Mac OS X”

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 […]