• 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
Re: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: "Finlay Dobbie" <email@hidden>
  • Date: Sun, 22 Apr 2007 13:11:39 +0100

On 22/04/07, Marco Ippoliti <email@hidden> wrote:
In AS exists

tell application "System Events"
        get the picture path of the current user
end tell

so I suspect that should exist in cocoa as well, but I cound not find
any reference in documentation nor with google searches.

No, no way to do it easily in Cocoa. The "correct" way to access this information is probably using the Open Directory API. See:

<http://developer.apple.com/documentation/Networking/Conceptual/Open_Directory/index.html>
<http://developer.apple.com/samplecode/NetworkAuthentication/index.html>

You'll need to retrieve the user record's kDS1AttrPicture attribute.

-- Finlay
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >(no subject) (From: Marco Ippoliti <email@hidden>)

  • Prev by Date: Re: (no subject) mail title should have be "How to get the path to the current user picture?"
  • Next by Date: Yet another problem with NSTask and NSPipe
  • Previous by thread: Re: (no subject) mail title should have be "How to get the path to the current user picture?"
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread