• 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
Test if app run by Guest account?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test if app run by Guest account?


  • Subject: Test if app run by Guest account?
  • From: Karl Moskowski <email@hidden>
  • Date: Thu, 26 Feb 2009 17:05:23 -0500

I'm looking for a way to disable some features in my application if it's being run by the Leopard Guest account.

I tried using CSIdentityQueryCreateForCurrentUser() as outlined in the Identity Services Programming Guide to determine the current account running the app, and when run by an admin account, it returns the expected identity.

However, when run by Guest, the returned array of entries contains no objects. Would that be sufficient to reliably establish that the Guest account is current?

Thanks in advance.

<http://developer.apple.com/documentation/networking/Conceptual/IdentityServices_ProgGuide/monitoring/chapter_4_section_2.html#//apple_ref/doc/uid/TP40004490-CH6-DontLinkElementID_15 >

----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Test if app run by Guest account?
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: NSTextView trackingArea problem
  • Next by Date: Re: Strange NSString Behavior
  • Previous by thread: Re: Using NSTableView without Nib files
  • Next by thread: Re: Test if app run by Guest account?
  • Index(es):
    • Date
    • Thread