• 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: NSUndoManager & NSTableView editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUndoManager & NSTableView editing


  • Subject: Re: NSUndoManager & NSTableView editing
  • From: Hannes Friederich <email@hidden>
  • Date: Thu, 26 Sep 2002 18:12:37 +0200

It's probably best to use -beginUndoGrouping / -endUndoGrouping outside the
dataSource of NSTableView, so that this particulary action only gets
executed when really needed.

You could f.ex use some similar code:

- (IBAction)addRow:(id)sender
{
if([tableView editedRow] != -1) {
//some code to end the editing of the row like deselecting it

//end the undoGroup

//begin a new undoGroup
}

//add a new row
}

-Hannes
_______________________________________________
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.

  • Prev by Date: Opening Documents at Unhide
  • Next by Date: Re: Opening Documents at Unhide
  • Previous by thread: Re: NSUndoManager & NSTableView editing
  • Next by thread: Obj C - Inheritance
  • Index(es):
    • Date
    • Thread