Re: Binding a model's ivar array to the contents of an NSArrayController
Re: Binding a model's ivar array to the contents of an NSArrayController
- Subject: Re: Binding a model's ivar array to the contents of an NSArrayController
- From: "I. Savant" <email@hidden>
- Date: Wed, 16 Sep 2009 11:34:34 -0400
On Sep 16, 2009, at 11:29 AM, A B wrote:
So in short, my need is pretty simple: Bind an array to an
NSArrayController. That being said, it seems that no combination of
exposeBindings:, bind:toObject:withKeypath:options:,
observeValueForKey:ofObject:change:context:, etc. is working as I
expect it to. Admittedly, I have done most of my binding work via
IB and I've never really done much with
bind:toObject:withKeypath:options: before, so I wouldn't be
surprised to find that that was where my problem lay.
Can anybody offer any general tips as to how I might be able to
accomplish this? I'm sure that this is one of those basic things
that once I get it I'll do a full-on forehead slap when the light
goes on, but right now I'm just feeling around in the dark.
An example, perhaps?
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
See the "Graphics Bindings" example.
--
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