NSDocument Menu Validation
NSDocument Menu Validation
- Subject: NSDocument Menu Validation
- From: Lon Giese <email@hidden>
- Date: Fri, 19 May 2006 17:59:54 -0700
According tho the docs the Revert menu item is validated by NSDocument.
If the doc is dirty AND their is a file for it on disk the revert item
is enabled, otherwise disabled.
Well in all of my NSDocument subsclasses this is not happening. The
revert item is always enabled. I stepped though with the debugger and
my NSDocument subsclasses are being called with validateMenuItem and
the revert item and returning YES.
The docs don't specifically mention Save item validation, but the the
above is happening with the Save item as well...
I don't know if this is a bug or I am not understanding the finer
points of the document architecture.
I could validate the items myself, but if this is due to my
misunderstanding of the architecture I would like to know....
Thanks Lon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden