Re: NSArraycontroller, Bindings nad NSTableview
Re: NSArraycontroller, Bindings nad NSTableview
- Subject: Re: NSArraycontroller, Bindings nad NSTableview
- From: "Sean McBride" <email@hidden>
- Date: Thu, 17 Jul 2008 12:10:14 -0400
- Organization: Rogue Research
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@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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