Re: Bindings/NSUserDefaultsController issue
Re: Bindings/NSUserDefaultsController issue
- Subject: Re: Bindings/NSUserDefaultsController issue
- From: Keary Suska <email@hidden>
- Date: Thu, 08 Mar 2007 08:51:12 -0700
- Thread-topic: Bindings/NSUserDefaultsController issue
on 3/7/07 9:46 PM, email@hidden purportedly said:
> At this point I should
> mention that "Device" is a subclass of NSMutableDictionary. The
> objects seem to get stored in NSUserDefaults fine - I can see encoded
> data when I `defaults read <domain>` from the command line, but my
> subclass's initWithCoder: and encodeWithCoder: implementations are
> never called. The objects appear to be NSMutableDictionarys when I
> `po [device class]` (where "device" is a reference to one of these
> objects - the same thing happens if I do something like `po
> [[[devicesController arrangedObjects] objectAtIndex:0] class]`). So
> it seems like the "Object Class Name" field is being ignored and the
> array controller is creating NSMutableDictionarys.
I am not sure if you followed, or were involved in the recent thread
regarding subclassing collection objects. In short, you are aware that you
can't subclass an NSDictionary like any other object? Just checking, since
attempting to do so will cause unexpected behavior, as well as hangs and
crashes.
If you *have* properly subclassed an NSMutableDictionary, I am inclined to
think that the issue lies in your subclass, since it would have to be
somewhat complex.
There may be other issues, but this is a good place to start.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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