Binding or notification
Binding or notification
- Subject: Binding or notification
- From: Michael Süssner <email@hidden>
- Date: Thu, 12 Mar 2009 21:26:52 +0100
I would like to do something similiar as canAdd, canRemove.
I would like to display the number of table rows in a text field
(label). I thought to do it in the same way as you can control the
edit-status of a button. I have learned that this can be easily done
by linking the "canAdd" method with the edit status.
So I have extended the NSArrayController class by adding a new method
numberOfRows. Since the value of numberOfRows changes each time I
insert an object, it would be necessary to link the
managedObjectContext to numberOfRows. I am not sure what kind of
technique has been used with canAdd.
Formerly, I would have subclassed theNSArrayController.
Has some a hint, how to do it the new/different way?
Michael
_______________________________________________
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