• 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
NSDocument Menu Validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Bindings, CoreData, NSOutlineView, and NSTreeController
  • Next by Date: Re: getting rid of thousand separator
  • Previous by thread: Re: Bindings, CoreData, NSOutlineView, and NSTreeController
  • Next by thread: IBPalette Custom Container view
  • Index(es):
    • Date
    • Thread