Re: Cocoa way to get list of user accounts?

2008-03-11 Thread Dave Camp
On Mar 10, 2008, at 11:00 PM, Mac QA wrote: I am seeking the nice clean Cocoa way of getting a list of user accounts on the local system. Ultimately in the form of an NSArray of NSStrings of user account short names. There must be a way without parsing obscure system files, or spawning off NSTas

Re: Cocoa way to get list of user accounts?

2008-03-11 Thread Jean-Daniel Dupas
Le 11 mars 08 à 09:51, Andrew Farmer a écrit : On 11 Mar 08, at 01:01, Mac QA wrote: On 3/11/08, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: As far as I know, the only reliable way to get users accounts is to use DirectoryServices ... you also have to be aware that the local user list storage

Re: Cocoa way to get list of user accounts?

2008-03-11 Thread Andrew Farmer
On 11 Mar 08, at 01:01, Mac QA wrote: On 3/11/08, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: As far as I know, the only reliable way to get users accounts is to use DirectoryServices ... you also have to be aware that the local user list storage has change between 10.4 and 10.5 Thanks for th

Re: Cocoa way to get list of user accounts?

2008-03-11 Thread Mac QA
On 3/11/08, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > As far as I know, the only reliable way to get users accounts is to > use DirectoryServices ... you also have to be aware > that the local user list storage has change between 10.4 and 10.5 Thanks for the info. Sounds none too convenient

Re: Cocoa way to get list of user accounts?

2008-03-11 Thread Jean-Daniel Dupas
As far as I know, the only reliable way to get users accounts is to use DirectoryServices but Apple do not provide Obj-C API for Directory Services. There is an obj-C wrapper in the DSTools project of Darwin (http://www.opensource.apple.com/darwinsource/ ), so you may have a look at it. Anyway

Cocoa way to get list of user accounts?

2008-03-10 Thread Mac QA
Hi, I am seeking the nice clean Cocoa way of getting a list of user accounts on the local system. Ultimately in the form of an NSArray of NSStrings of user account short names. There must be a way without parsing obscure system files, or spawning off NSTasks and parsing output, right? Any and all