Hi all,

I'm trying to make a custom NSActionCell that works in an NSTableView
that in turn uses Cocoa Bindings.

It's mostly working, except... when the user clicks my cell, changes are
not getting back to the model side.

1) Does an NSCell subclass need code to participate in the bindings
architecture?  My impression is 'no', that the NSControl does.

2) In response to clicks in the cell (ex: continueTracking:at:inView:)
what should I be doing?  Currently, I tried:
 [self setObjectValue:newValue];
 and/or
 [(NSControl*)controlView updateCell:self];

but as I said changes are not getting to my model.

I've also tried the following:
 - binding the NSTableColumn in IB vs. programatically
 - specifying my custom cell class in IB vs. using
tableView:dataCellForTableColumn:row:

I have read many docs and googled for hours.  I have found similar
discussions in the past but no complete solution.  The closest was this:
<http://www.cocoabuilder.com/archive/cocoa/154240-cocoa-custom-nscell-
binding-issue.html>

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
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 arch...@mail-archive.com

Reply via email to