• 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
Re: inspecting undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >inspecting undo (From: James Maxwell <email@hidden>)

  • Prev by Date: CALayer drawing "transition" effect?
  • Next by Date: Re: Making child windows move with their parents
  • Previous by thread: Re: inspecting undo
  • Next by thread: CALayer drawing "transition" effect?
  • Index(es):
    • Date
    • Thread