• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting user and group names from user and group IDs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting user and group names from user and group IDs


  • Subject: Getting user and group names from user and group IDs
  • From: Ken Tozier <email@hidden>
  • Date: Tue, 25 Apr 2006 05:22:46 -0400

Hi

I'm writing a replacement for [NSFileManager fileAttributesAtPath] to return some additional info I need for my app and have everything working except conversion of user and group ids to their corresponding user and group names.

I Googled for several hours but couldn't seem to find anything that does it except the command line "ls -l <file path>" command. Looking at the man page for ls, I didn't see any way to just return these two pieces of information and I'd rather not have to get into parsing strings. Is there some Carbon or Cocoa function that allows for these types of conversion?

Thanks

Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting user and group names from user and group IDs
      • From: Axel Andersson <email@hidden>
  • Prev by Date: Re: Animated split view collapsing
  • Next by Date: Re: Getting user and group names from user and group IDs
  • Previous by thread: Re: NSTreeController and NSBrowser multiple selection
  • Next by thread: Re: Getting user and group names from user and group IDs
  • Index(es):
    • Date
    • Thread