• 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: what cell is being editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what cell is being editing


  • Subject: Re: what cell is being editing
  • From: Stefan Schüßler <email@hidden>
  • Date: Sat, 2 Aug 2003 15:45:42 +0200

You could implement the tableView:shouldEditTableColumn:row: delegate. It is called just before the user starts editing, e.g.:

- (BOOL)tableView:(NSTableView *)aTableView
shouldEditTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
{
NSLog( @"about to edit cell with id '%@' at row #%d",
[aTableColumn identifier], row );

return YES; // allow editing
}

Don't forget to set the tableview's delegate to the object that implements this method.

Stefan

Am Samstag, 02.08.03 um 15:06 Uhr schrieb Luca Torella:

How can I know what cell is being editing in a NSTableView?

Luca.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >what cell is being editing (From: Luca Torella <email@hidden>)

  • Prev by Date: Re: Optimizing for code size
  • Next by Date: Re: Corrupted NSMutableString
  • Previous by thread: Re: what cell is being editing
  • Next by thread: Writing directly to NSTableView
  • Index(es):
    • Date
    • Thread