• 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
Re: NSCell subclass editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCell subclass editing
      • From: tiennou <email@hidden>
References: 
 >NSCell subclass editing (From: tiennou <email@hidden>)
 >Re: NSCell subclass editing (From: Boris Remizov <email@hidden>)
 >Re: NSCell subclass editing (From: tiennou <email@hidden>)

  • Prev by Date: [JOB] Cocoa Developer, Madison, WI
  • Next by Date: Re: 'kASAppleScriptSuite' undeclared
  • Previous by thread: Re: NSCell subclass editing
  • Next by thread: Re: NSCell subclass editing
  • Index(es):
    • Date
    • Thread