Re: Bindings Question
Re: Bindings Question
- Subject: Re: Bindings Question
- From: Timothy Larkin <email@hidden>
- Date: Mon, 4 Dec 2006 06:51:25 -0500
On Dec 4, 2006, at 12:35 AM, Matt wrote:
When I add something to the array, the method is getting called
correctly (my insertBookmarkIntoBookmarksArray: method) b/c I've
got some output to the console. However, the tableview never shows
a thing. I'm guessing I have something wired incorrectly, just
looking for any suggestions or places to start looking.
When I run into this problem, it's usually because I have not added
the new object correctly. Your table columns are bound to the array
controller, and then you "add something to the array". But it's not
clear exactly how you do this. You must call the array controller's
"addObject:" method. It is not sufficient to do something equivalent
to "[[myArrayController content] addObject:foo"; this adds an object
to the array controller's content, but not in a way that triggers the
binding.
--
Timothy Larkin
Abstract Tools
Caroline, NY
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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