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.
Template for a switchable command line utility, written in portable C. Various flags already set, for example -v for version output. Special feature is a customizable switch counter that limits the amount of processed arguments. On this page you will always find the latest variant, code is maintained at GitHub.