Re: Bindings Question
Re: Bindings Question
- Subject: Re: Bindings Question
- From: Chris Idou <email@hidden>
- Date: Thu, 25 Sep 2008 17:39:39 -0700 (PDT)
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@hidden> wrote:
> From: Eric Lee <email@hidden>
> Subject: Bindings Question
> To: email@hidden
> 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 (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
_______________________________________________
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