On 7/17/08 11:52 AM, Louis Demers said:

>       I've programmed for a while in Cocoa, with bindings... But for the
>first time I need a NSTableView and I would like to use
>NSArrayController with bindings to do as much work as possible and
>with the minimum amount of code. But I've had nothing but failure,
>even after inspecting many examples and tutorials on google.
>
>Initially I believed that NSArrayController would store the array
>itself but I now resorted to having my own NSMutableArray (with getter
>and setters) in my model.
>
>A button bound to the "add" or the "insert" method of the
>NSArrayController just does nothing.

add: and insert: are IBAction methods of NSArrayController.  Are you
just confusing terminology here?  You should control-drag in IB to
connect your button's action to the arraycontroller's add: method.  No
bindings there.

--
____________________________________________________________
Sean McBride, B. Eng                 [EMAIL PROTECTED]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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]

Reply via email to