• 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: Responder Chain & Multiple Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Responder Chain & Multiple Windows


  • Subject: Re: Responder Chain & Multiple Windows
  • From: j o a r <email@hidden>
  • Date: Mon, 10 Nov 2008 09:34:39 -0800


On Nov 10, 2008, at 9:00 AM, Todd Heberlein wrote:

Oops. Yes, MyDocument is a subclass of NSDocument and BrowserViewController is a subclass of NSWindowController


...should probably be called "BrowserWindowController" in that case... :-)


In MyDocument I have a method that has the following code:

    BrowserViewController* bvc;

bvc = [[[BrowserViewController alloc] init] autorelease]; // init loads NIB
[self addWindowController:bvc];
[bvc showWindow:self];



Both MyDocument and BrowserViewController implement the method (which is the action for the menu item):


	- (IBAction) extractAuditSession: (id) sender;

But the menu item is only available when the window associated with MyDocument is key. When the window associated with BrowserViewController is key, the menu item is dimmed out.


What if you make the window controller the delegate of the window?


j o a r


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Responder Chain & Multiple Windows
      • From: Todd Heberlein <email@hidden>
References: 
 >Detect microphone (From: chaitanya pandit <email@hidden>)
 >Re: Detect microphone (From: "Kyle Sluder" <email@hidden>)
 >Re: Detect microphone (From: chaitanya pandit <email@hidden>)
 >Re: Detect microphone (From: Graham Cox <email@hidden>)
 >Re: Detect microphone (From: chaitanya pandit <email@hidden>)
 >Responder Chain & Multiple Windows (From: Todd Heberlein <email@hidden>)
 >Re: Responder Chain & Multiple Windows (From: Graham Cox <email@hidden>)
 >Re: Responder Chain & Multiple Windows (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: Inviting to comment on Cocoa categories
  • Next by Date: Badged icons
  • Previous by thread: Re: Responder Chain & Multiple Windows
  • Next by thread: Re: Responder Chain & Multiple Windows
  • Index(es):
    • Date
    • Thread