Posts tagged ObjC

Private Properties in Objective-C

I’m an avid fan of properties and I’m using them as often as possible. Recently someone asked me how I deal with private variables. The answer is: a private property. Initially I wanted to write my own blog post about it, fortunately David Linsin already did this. His approach is very similar to mine so I just share the link with you.

File attributes with Cocoa

In this basic Cocoa example I’m explaining how to access file attributes with NSFileManager and also a simple way of converting a NSURL to a path. Feel free to share and to use this for your own projects.