• 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: Generating default values in a bindings controlled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Generating default values in a bindings controlled (From: Richard Stacpoole <email@hidden>)

  • Prev by Date: Re: Generating default values in a bindings controlled
  • Next by Date: Re: Problem with NSObjectController key path
  • Previous by thread: Re: Generating default values in a bindings controlled
  • Next by thread: #define issues
  • Index(es):
    • Date
    • Thread