Re: [SOLVED] Re: dynamically adding NSTableColumns while using bindings
Re: [SOLVED] Re: dynamically adding NSTableColumns while using bindings
- Subject: Re: [SOLVED] Re: dynamically adding NSTableColumns while using bindings
- From: "I. Savant" <email@hidden>
- Date: Wed, 1 Aug 2007 21:22:56 -0400
On Aug 1, 2007, at 8:57 PM, Paul Gribble wrote:
Nowhere else, in code, or in the nib, do I need to declare that I'm
going to
be using "newcol" as the key path. It just knows. Now I will
eventually have
to give each column a unique key path, like col2, col3, etc. but
that's for
another day.
This is probably because the default class an array controller
uses is NSMutableDictionary, which can store anything for any string
key. If you were using a custom class "Person" that has properties
"name" and "age", it would complain if you'd try to bind to "sex".
--
I.S.
_______________________________________________
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