Re: Bindings Question
Re: Bindings Question
- Subject: Re: Bindings Question
- From: Eric Lee <email@hidden>
- Date: Thu, 25 Sep 2008 20:18:21 -0500
Sorry for the late response...computer froze
Anyways, yeah, I have a NSArrayController, and I binded the table view
to it, which let me actually add something. How do you bind a button
to an action? Just control-drag?
On Sep 25, 2008, at 7:39 PM, Chris Idou wrote:
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
_______________________________________________
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