• 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: CGSessionCopyCurrentDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGSessionCopyCurrentDictionary


  • Subject: Re: CGSessionCopyCurrentDictionary
  • From: Mike Paquette <email@hidden>
  • Date: Wed, 9 Nov 2005 20:54:32 -0800


On Nov 9, 2005, at 8:02 PM, Jeff Schindler wrote:

Can anyone tell me if CGSessionCopyCurrentDictionary has changed in 10.4.3? We have a SystemLoginItem that calls this to determine the login state of the user - it works fine under 10.4.2, but on 10.4.3 it appears that some of the expected values are missing. The headers say that the values are guaranteed by the system to be present in the session dictionary, but this does not appear to be the case under 10.4.3. Specifically, it appears that kCGSessionUserNameKey is not present when we call this (which would be just prior to the login screen, when the SystemLoginItem starts). TIA.

There is no valid user name at that point. No user has logged in yet.

To check the login state of the session, use the key kCGSessionLoginDoneKey. The value will be kCFBooleanFalse if no user has logged in yet, and kCFBooleanTrue if a user is logged in.
_______________________________________________
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: CGSessionCopyCurrentDictionary
      • From: "Jeff Schindler" <email@hidden>
References: 
 >CGSessionCopyCurrentDictionary (From: "Jeff Schindler" <email@hidden>)

  • Prev by Date: refreshing the header title for an NSTableColumn
  • Next by Date: Re: refreshing the header title for an NSTableColumn
  • Previous by thread: CGSessionCopyCurrentDictionary
  • Next by thread: Re: CGSessionCopyCurrentDictionary
  • Index(es):
    • Date
    • Thread