• 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: How to validate the Undo menu item?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to validate the Undo menu item?


  • Subject: Re: How to validate the Undo menu item?
  • From: Brian Webster <email@hidden>
  • Date: Thu, 25 Apr 2002 10:48:04 -0500

On Wednesday, April 24, 2002, at 11:07 PM, cocoa-dev-
email@hidden wrote:

Or maybe it works, but something else is getting in the way of my testing
it. That's the problem I'm really interested in solving. It's been keeping
me awake nights. Once I put the undo: method in my table view subclass to
force menu validation there, my special undo menu items lose their custom
names and apparently also their association with specific undo actions. The
undo menu items are suddenly all just "Undo," instead of "Undo Edit" or
"Undo Add Record." This is probably just a bug somewhere in my code (or my
brain), but I'm having a very hard time finding it.

Is there any way that more than one undo manager might have been created? Kind of a shot in the dark, really, but it might be worth checking, perhaps by implementing windowWillReturnUndoManager: and seeing what's getting returned. Like maybe you have an undo manager created by your document, and the window is creating its own and returning it for the table view, or something along those lines.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How to validate the Undo menu item?
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Inches, Centimeters, and NSMeasurementUnit
  • Next by Date: Wait / Busy Cursor
  • Previous by thread: Re: How to validate the Undo menu item?
  • Next by thread: Re: How to validate the Undo menu item?
  • Index(es):
    • Date
    • Thread