Re: Generating default values in a bindings controlled
Re: Generating default values in a bindings controlled
- Subject: Re: Generating default values in a bindings controlled
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 16 Apr 2005 00:33:51 -0700
On Apr 16, 2005, at 12:24 AM, Richard Stacpoole wrote:
When I click on the "New Task" button, which is bound to insert, an
instance of the model is created (and values can be put in), but
the default values from the init method never appear. The new row
is completely blank.
Are you sure it's a new Task object? Is the Object Class Name for
the array controller still NSMutableDictionary?
In the inspector panel for that controller the Object Class Name is
NSMutableDictionary and the keys include dueDate and details.
The Object Class Name specifies what class of object the controller
creates (so it's currently creating dictionaries instead of your
custom class). You need to set it to Task.
Also thanks for your sample code page it is very helpful
Glad to be of service.
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