Re: View based NSTableView bounds to NSArrayController bounds to NSUserDefaultsController
Re: View based NSTableView bounds to NSArrayController bounds to NSUserDefaultsController
- Subject: Re: View based NSTableView bounds to NSArrayController bounds to NSUserDefaultsController
- From: Steve Mills <email@hidden>
- Date: Mon, 06 Feb 2017 21:10:35 +0000 (GMT)
On Feb 06, 2017, at 02:37 PM, Ken Thomases <email@hidden> wrote:
What is your cell view? An NSTableCellView with an NSTextField as a descendant view? An NSTextField directly?
The default you get when you create a new table, NSTableCellView containing an NSTextField, which contains an NSTextFieldCell (and the default NSTextFieldCell as a sibling to the NSTextField).
Are you also using bindings for the text field's value? How is that binding configured?
Yes, the NSTextField's Value is bound to Table Cell View using Model Key Path objectValue.EmailAddress. These are on:
Allows Editing Multiple Values Selection
Conditionally Sets Editable
Raises for Not Applicable Keys
Going up the chain, the column has no bindings set. The table's Content is bound to an Array Controller, Controller Key arrangedObjects.
That Array Controller's Content Array is bound to Shared User Defaults Controller, Controller Key values, Model Key Path EUGEmailAddresses (an array of dicts), Mode Class, Class Name NSMutableDictionary, Prepares Content, Editable, a single Key named EmailAddress.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden