So I want to implement Parental Controls per user in my app, but I need a way of getting all Users and add them to an NSTableView. These users should be the same displayed b
From the command line, you can run
dscl localhost -list /Local/Default/Users
There are a lot of users that start with the underscore character that can be ignored by you app. This command can of course be run from within cocoa and the output read, but it can also be accessed more directly.
You can also use an Apple framework, but it is probably easier to use a wrapper. I can't find a very recent one right now, but search for something like this:
http://www.martinkahr.com/2006/10/15/cocoa-directory-services-wrapper/index.html