Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with undo/redo and NSArrayController



on 06/04/10 10:08, Mike Abdullah at email@hidden wrote:

> 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?

The surprising answer is: whatever you tell it to.

I don't understand your issue fully, but it smells like you may benefit from
this post by Bill Cheeseman.  Redo does NOT "just work"....

http://www.cocoabuilder.com/archive/message/cocoa/2002/7/12/61349


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Help with undo/redo and NSArrayController (From: Mike Abdullah <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.