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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to