Re: core data - beyond the simple example
Re: core data - beyond the simple example
- Subject: Re: core data - beyond the simple example
- From: "I. Savant" <email@hidden>
- Date: Fri, 4 Apr 2008 15:44:26 -0400
On Fri, Apr 4, 2008 at 3:39 PM, Torsten Curdt <email@hidden> wrote:
> OK ...so predicate filter I got working - sort of. I've bound the predicate
> in the AppDelegate to the NSArrayController. When I start up the application
> it filters just fine.
> I've also got the "add" and "remove" actions bound to buttons. But as soon
> as I call "add" the filtered objects re-appear and the predicate seems to
> get not applied anymore.
>
> Any thoughts on that?
Yes. Remember the prerequisites I mentioned?
> 4 - Bindings (and probably the required KVC/KVO concepts).
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This means "Key Value Coding" / "Key Value Observing". Lack of
proper KVO encapsulation is most likely the cause.
> As for the table cell.... Creating a custom table cell doesn't seem to be a
> big deal. But if I want to layout the controls through IB it seems I either
> need to get the SubviewTable thing working with bindings or just go Leopard
> and use NSCollectionView. There seems to be quite a good example available.
Yes.
--
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