• 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
NSUndoManager problems with [NSMutableArray setArray] and TableViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUndoManager problems with [NSMutableArray setArray] and TableViews


  • Subject: NSUndoManager problems with [NSMutableArray setArray] and TableViews
  • From: Felipe Baytelman <email@hidden>
  • Date: Mon, 10 Jan 2005 16:06:27 +0900

I'm starting to work with NSUndoManager, and I have some problems with it:
I'm not sure how REDO work...


If I do the following for managing and undoing theArray...

NSArray * undoArray = [NSArray arrayWithArray:theArray];

//... some array actions like
[theArray removeObjectAtIndex: 0];
[theTableView reloadData];
//...
[undoManager beginUndoGrouping];
[undoManager registerUndoWithTarget:theArray selector:@selector(setArray:) object:undoArray];
[undoManager registerUndoWithTarget: theTableView selector:@selector(reloadData:) object:nil];
[undoManager endUndoGrouping];


UNDO works OK, but REDO won't do anything.

What should I do to make REDO work?

Thanks!
--
Felipe Baytelman
email@hidden
080 5498 9347
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Bindings are retaining my #@$%ing window controller!!
  • Next by Date: Any one have pointers/examples on drawing within a column in a table view?
  • Previous by thread: Re: Bindings are retaining my #@$%ing window controller!!
  • Next by thread: Any one have pointers/examples on drawing within a column in a table view?
  • Index(es):
    • Date
    • Thread