Re: NSCell subclass editing
Re: NSCell subclass editing
- Subject: Re: NSCell subclass editing
- From: Oliver Quas <email@hidden>
- Date: Tue, 2 Oct 2007 20:26:45 +0200
Hi there,
AFAIK, what you're trying to achieve is not 'in cell editing' but
simple button pressing, so your cell acts more like a NSButtonCell,
right? So why not use the target/action mechanism to inform the
controller object (which probably is also the dataSource for your
tableView)? The controller would then handle the open panel (as its
delegate) and write the returned value into your model object. You
could get the appropriate position of the model object (in your
dataSource's array) by determining the 'calling' cell's row (i.e. use
something like [myTableView selectedRow]). After that, simply update
the table view by sending [tableView reloadData]. If everything is
properly implemented, the tableView should display the new value in
the specific row. IMHO, this should conform better to the MVC
paradigm, does it?
Just my 2 cents.
Best regards,
Oliver
_______________________________________________
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