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

Re: Disappearing prefs


  • Subject: Re: Disappearing prefs
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 12 Apr 2010 11:20:04 -0700

On Apr 12, 2010, at 10:21, Eric Long wrote:

> This a Hail Mary pass...
>
> I have a bizarre bug.  Perhaps someone has a hunch about what's going on.
>
> My application prefs file, which is managed with NSUserDefaults, is getting
> reset to default values, but so far only on a PPC running 10.5.8 and only
> during the wee hours of Monday mornings. (Go figure)

I can't resist trying a Hail Mary answer. If I'm right can I have a million dollars, please?

One possibility to consider is messaging a nil object. That's normally safe (you get a reliable return value of 0/nil/NULL). But if the method return value is a *structure*, the return value is unpredictable. (And, yes, I learned this the hard way. Even though I already knew it.)

One thing that I *think* is different about PPC is the set of rules for how structures are returned (depending on how big they are, and whatever other factors).

So, sending a structure-returning message to a nil object may fail differently on PPC, but differently in a repeatable way, perhaps.

Or not.

Message me off-list about where to send the million dollars, ok?


_______________________________________________

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

References: 
 >Disappearing prefs (From: Eric Long <email@hidden>)

  • Prev by Date: Re: Data managment
  • Next by Date: Re: NSInvocation error when closing a dirty document
  • Previous by thread: Re: Disappearing prefs
  • Next by thread: Updating parameters of a CI filter on a CA layer
  • Index(es):
    • Date
    • Thread