Normally you would have the table controlled by a NSArrayController. You would bind the button to an action method which would take the value from the text field and pass it to addObject: method of the array controller.
--- On Thu, 9/25/08, Eric Lee <[EMAIL PROTECTED]> wrote: > From: Eric Lee <[EMAIL PROTECTED]> > Subject: Bindings Question > To: Cocoa-dev@lists.apple.com > Date: Thursday, September 25, 2008, 5:34 PM > I have an app that I'm making for practice that has a > tableview, and a > text field (and many other things, but the ones that are > the problem > are these two) > > I just successfully changed my app to use bindings. > However, whenever > I pressed a button before, something would be added into a > > NSMutableArray, and then the string would show up in the > table view. > > Now, something IS added into the NSmutableArray, and will > show up, but > not the string. The thing that's added is just this > blank. > > How do you solves these so that when I press the button, > the string in > the text field will actually be added and shown in the > table view? > > Thanks! > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/idou747%40yahoo.com > > This email sent to [EMAIL PROTECTED] _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]