• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
custom NSActionCell in an NSTableView that uses Cocoa Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom NSActionCell in an NSTableView that uses Cocoa Bindings


  • Subject: custom NSActionCell in an NSTableView that uses Cocoa Bindings
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 23 Feb 2010 10:54:17 -0500
  • Organization: Rogue Research Inc.

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                 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

  • Prev by Date: Re: Removing quit button from dock menu
  • Next by Date: Re: Removing quit button from dock menu
  • Previous by thread: Re: -commitEditing NSAlert not always presented as a sheet
  • Next by thread: 'ditto' troubles
  • Index(es):
    • Date
    • Thread