I'm using MacFUSE to create a cool filesystem. I'd like to set the NSFileOwnerAccountID
and NSFileGroupOwnerAccountID
attributes for the files on it, but the underlying framework I use only gives me user names.
How can I get an account ID from an account name under Mac OS X using Cocoa or other built-in frameworks?