• 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: hanging on NSUserDefaults setValue:forKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hanging on NSUserDefaults setValue:forKey


  • Subject: Re: hanging on NSUserDefaults setValue:forKey
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 2 Aug 2004 09:27:42 -0500

I'd guess that NSUserDefaults is not key-value coding compliant for the values of defaults. I say this because otherwise, I don't know why a special point is made that -[NSUserDefaultsController values] returns a KVC-compliant object containing the default properties.

What happens when you use the NSUserDefaults method setObject:forKey:?

-- F

On 1 Aug 2004, at 11:20 PM, Mark A. Stratman wrote:

My application seems to sporadically hang on the following call to setValues:forKey, where 'date' is an NSDate

if (date != nil) {
[[NSUserDefaults standardUserDefaults] setValue:date forKey:@"dateLastChecked"];
}

I wish I could narrow it down and give more details, but I'm completely stumped. I can't seem to figure out an exact way to recreate this. To get it to occur most often, I delete its ~/Library/Preferences/blah.blah.plist.

Does anyone know offhand what might be a cause of this?

--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: hanging on NSUserDefaults setValue:forKey
      • From: "Mark A. Stratman" <email@hidden>
References: 
 >hanging on NSUserDefaults setValue:forKey (From: "Mark A. Stratman" <email@hidden>)

  • Prev by Date: Re: Magnified Dock-Like View
  • Next by Date: Re: [OT] Premature optimizations
  • Previous by thread: hanging on NSUserDefaults setValue:forKey
  • Next by thread: Re: hanging on NSUserDefaults setValue:forKey
  • Index(es):
    • Date
    • Thread