• 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
Menu enabling and "_documentWindow"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Menu enabling and "_documentWindow"


  • Subject: Menu enabling and "_documentWindow"
  • From: Sanford Selznick <email@hidden>
  • Date: Sat, 3 Jun 2006 20:58:31 -0700

I'm having an odd problem. I have an NSDocument application. In my MainMenu.nib I've added an action for a menu item. I handle this selector in the MyDocument instance. The menu item enables and disables perfectly. (Go Cocoa!)

However, I want the same menu item to be available in a particular sheet that I sometimes open on document windows. So I added the same selector to the sheet's NSWindowController subclass.

Now, whenever I roll over the menu containing the menu item, I get:

-[MyNSWindowController _documentWindow]: selector not recognized...

Any ideas why simply adding the selector to the NSWindowController subclass is causing this problem? What's _documentWindow? And why's it not recognized?

Is there some trick with enabling menu items with sheets open?

Thank you,
  Sanford

PS - I'm creating the sheet with [NSApp beginSheet...
_______________________________________________
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: Re: how do I kill and quit processes/daemons?
  • Next by Date: Re: Can NSMailDelivery be configured programmatically?
  • Previous by thread: NSArrayController binding question
  • Next by thread: Re: Menu enabling and "_documentWindow"
  • Index(es):
    • Date
    • Thread