• 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
Help with undo/redo and NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with undo/redo and NSArrayController


  • Subject: Help with undo/redo and NSArrayController
  • From: Mike Abdullah <email@hidden>
  • Date: Mon, 10 Apr 2006 18:08:37 +0100

I'm currently implementing undo/redo functionality in my app and I'm having problems with my NSArrayController. When adding an item to the array controller, I call from the documents undo manager:

prepareWithInvocationTarget: arrayController] removeObject: newObject];

Now this works fine for the undo functionality, but as soon as I try to redo the operation, nothing happens. So I guess the question is, what method does the redo functionality call?

I suspect that addObject may be called, but my app requires that any new have two of their properties set in order to work correctly. Could this be what is causing the problem?

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


  • Follow-Ups:
    • Re: Help with undo/redo and NSArrayController
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Beginner with Objective-C was Re: scanf...?
  • Next by Date: Re: Size limit of NSData or NSFileHandle?
  • Previous by thread: Binding to NSButtonCell in NSTableView
  • Next by thread: Re: Help with undo/redo and NSArrayController
  • Index(es):
    • Date
    • Thread