Re: How to validate the Undo menu item?
Re: How to validate the Undo menu item?
- Subject: Re: How to validate the Undo menu item?
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 23 Apr 2002 17:24:23 -0400
on 02-04-23 4:31 PM, Brian Webster at email@hidden wrote:
>
Is there a reason you don't just implement the validateMenuItem:
>
in your NSDocument rather than the table view itself?
Yes: It doesn't work, either. Also, one of the conditions for disabling the
Undo menu item has to do with the state of the table view (namely, is one of
its rows currently being edited), and I hate to access view objects from
within my document.
When I say it doesn't work, I mean that, although the validateMenuItem;
method gets called in my document for other menu items, it never gets called
for the Undo menu item. For that, I would have to implement undo: in my
document, and then I still would have the problem of not knowing what to do
in undo:.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.