Some time ago I did a post to show how to debug a preference pane with Xcode, but the tip was for Xcode 3, and now with Xcode 4 it has changed a bit.
But yesterday Scott Lahteine posted a comment to explain how to do it, so here is the new method for Xcode 4.
Continue reading
Category Archives: XCode
[Tip] XCode 4 Code Snippets Library
With XCode 4 Apple introduced very cool stuff, one I love is the Code Snippet Library. As its name suggests, it’s a library with some snippets of code. What’s cool is that you can add your own snippets and define a shortcut to it.
![]()
For example when I work with iPhone SDK I often use the networkActivityIndicatorVisible property of UIApplication, so I created a snippet with shortcut netwa, which write for me :
If like me you want to set a placeholder for an argument, you simply write it this way :
[UIApplication sharedApplication].networkActivityIndicatorVisible = <#state#>;
It will automatically create a token field for your argument (like on the last screenshot).
It’s very convenient when you create snippets with several arguments because it allows to switch to them with the tab key.
WTF Xcode ?
[How-to] Debug a Preference Pane with XCode
Here is a quick tip to help you debug your Preference Pane with XCode, because debugging with NSLog() is painful and not very productive.
Continue reading