Re: NSArraycontroller, Bindings nad NSTableview
Re: NSArraycontroller, Bindings nad NSTableview
- Subject: Re: NSArraycontroller, Bindings nad NSTableview
- From: Louis Demers <email@hidden>
- Date: Thu, 17 Jul 2008 14:09:37 -0400
On 17-Jul-08, at 12:10 , Sean McBride wrote:
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?
probably. I control-dragged from my button to my instance of the
nsarraycontroller.
You should control-drag in IB to
connect your button's action to the arraycontroller's add: method. No
bindings there.
my reference to the bindings was in relation to the nsarraycontroller
configuration.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
Louis Demers eng.
www.obzerv.com
_______________________________________________
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