--- On Thu, 7/31/08, James Maxwell <[EMAIL PROTECTED]> wrote:

> From: James Maxwell <[EMAIL PROTECTED]>
> Subject: inspecting undo
> To: "Cocoa Dev" <cocoa-dev@lists.apple.com>
> Date: Thursday, July 31, 2008, 9:52 AM
> I'm trying to figure out why a particular undo isn't
> working and I'm  
> wondering whether there's any way of viewing the method
> and object  
> registered with the most recent undo. I think I know why my
> undo isn't  
> working, in this particular case, but I'd like to see
> exactly what the  
> undoManager thinks it has at the top of its stack.
> 
> AFAIK there's no way to print the whole undo stack, but
> can I just see  
> the top?

If it's just for debugging purposes, you could cheat and look at the _undoStack 
ivar. Of course, this is an evil hack and should never, ever be used in 
production code, but it could be instructive just as an experiment.

Cheers,
Chuck


      
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to