Re: NSObjectController: What is the proper way to populate File Owner's NSMutableDictionary?
Re: NSObjectController: What is the proper way to populate File Owner's NSMutableDictionary?
- Subject: Re: NSObjectController: What is the proper way to populate File Owner's NSMutableDictionary?
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 27 Dec 2005 01:03:06 -0800
On Dec 26, 2005, at 9:19 PM, Frederick C. Lee wrote:
If I understand correctly what you're trying to achieve (that is,
have the "Add" button addd values for the relevant keys in the
dictionary):
1) The 'Add' button doesn't appear to do anything.
Add will only add an instance of whatever it is that the object
controller manages. If you want to add attributes of that object,
you must do so independently.
Chosen Properties of NSObjectContoller:
Attributes:
Object Class Name: NSMutableDictionary {keys: newName,
newImage, newMemo, newRegion}
Bindings: Controller Content:
contentObject: {file's owner (NSPersistentDocument}
Assuming that this is correct (i.e. no typos and that you have bound
the 'content' of the object controller just to File's Owner, and not
specified a keypath) then this is inconsistent -- the class is not a
mutable dictionary -- although it probably matters little here. You
need to specify the keypath from file's owner to your dictionary --
from the later description, presumably newGeoEntity.
So the object controller's content should probably be bound to
[File's Owner].newGeoEntity
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden