Re: inspecting undo
Re: inspecting undo
- Subject: Re: inspecting undo
- From: Charles Steinman <email@hidden>
- Date: Thu, 31 Jul 2008 10:29:46 -0700 (PDT)
--- On Thu, 7/31/08, James Maxwell <email@hidden> wrote:
> From: James Maxwell <email@hidden>
> Subject: inspecting undo
> To: "Cocoa Dev" <email@hidden>
> 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 (email@hidden)
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:
This email sent to email@hidden