FROM : Ian Jackson
DATE : Wed Apr 02 12:33:04 2008
Does this mean that you want to create a new object and add it to the
array, by typing a new string into the combo box (and pressing enter)?
My feeling is you'd need to write a bit of code yourself for that.
Ian.
On 1/04/2008, at 9:44 AM, David Springer wrote:
> All,
>
> I'm having trouble setting up the bindings for my NSComboBox. I bind
> the NSComboBox's content to NSArrayController's arrangedObjects. This
> works fine.
>
> Now, I want to add to the content array when you enter a new string
> into the combo box. Say, for example, I start with an array of @"file
> 1", @"file 2", @"file 3". Then, in the combo box, I enter "file foo".
> I want to add this string to the content array, but I am at a loss as
> to how to set up the bindings to do this. Do I bind NSComboBox's
> value to something? My experiments in doing this so far are failing.
>
> Help?
> - Dave.S
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
DATE : Wed Apr 02 12:33:04 2008
Does this mean that you want to create a new object and add it to the
array, by typing a new string into the combo box (and pressing enter)?
My feeling is you'd need to write a bit of code yourself for that.
Ian.
On 1/04/2008, at 9:44 AM, David Springer wrote:
> All,
>
> I'm having trouble setting up the bindings for my NSComboBox. I bind
> the NSComboBox's content to NSArrayController's arrangedObjects. This
> works fine.
>
> Now, I want to add to the content array when you enter a new string
> into the combo box. Say, for example, I start with an array of @"file
> 1", @"file 2", @"file 3". Then, in the combo box, I enter "file foo".
> I want to add this string to the content array, but I am at a loss as
> to how to set up the bindings to do this. Do I bind NSComboBox's
> value to something? My experiments in doing this so far are failing.
>
> Help?
> - Dave.S
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| David Springer | Mar 31, 22:44 | |
| Ian Jackson | Apr 2, 12:33 | |
| Adam Gerson | Apr 2, 19:17 |






Cocoa mail archive

