list of uids / names of System Preferences > Accounts
- by neoneye
How can I obtain an array with uid and names?
I could iterate from 0 to 99999 and do a getpwnam().
However most machines have less than 5 accounts, so it's not optimal. I don't know what framework is responsible for this and thus I have no clue what to search for.
Is there a more optimal solution that can traverse the accounts?