• 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
-[NSUserDefaults initWithUser:] broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSUserDefaults initWithUser:] broken?


  • Subject: -[NSUserDefaults initWithUser:] broken?
  • From: Andreas Monitzer <email@hidden>
  • Date: Thu, 6 Sep 2001 00:42:27 +0200

I've got a Foundation tool that is run as root and has to access regular users' defaults.
[[NSUserDefaults alloc] initWithUser:@"otheruser"] (which should be correct according to the docs) always returns the defaults of the current user! Looks like a critical bug (for my app), should I report it?
Any idea for a workaround other than accessing ~user/Library/Preferences/domain.plist (which could break someday)?

(this was tested on a hypothetical system)

andy
--
Description forthcoming.


  • Follow-Ups:
    • Re: -[NSUserDefaults initWithUser:] broken?
      • From: Chris Kane <email@hidden>
  • Prev by Date: Re: self and _cmd
  • Next by Date: delegation of NSApp
  • Previous by thread: Re: How to add response to Null event
  • Next by thread: Re: -[NSUserDefaults initWithUser:] broken?
  • Index(es):
    • Date
    • Thread