• 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
Switching between window controllers in code ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Switching between window controllers in code ?


  • Subject: Switching between window controllers in code ?
  • From: Erik Stainsby <email@hidden>
  • Date: Mon, 20 Aug 2012 20:53:54 -0700

This is either a stupid question or it is trivial. I just haven't run across the situation before.

My app has two windows, ergo two windowControllers. I would like to toggle between them from a single menu item, ergo a single method handler. However that requires that the two window controllers have a common ancestor(?) in the responder chain. That let's appDelegate out, not a responder object. So, is there any way to have the same object in two nibs without getting caught in recursive looping, or retain cycles ?

10.8 (target 10.7), XC4.4

(I suppose it could be both trivial and stupid.)

~ Erik
_______________________________________________

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: Switching between window controllers in code ?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: How to make Obj-C collection subscripting work on iOS 5?
  • Next by Date: Re: Switching between window controllers in code ?
  • Previous by thread: Re: NSSplitView crash upon restore from 10.8 Versions Browser
  • Next by thread: Re: Switching between window controllers in code ?
  • Index(es):
    • Date
    • Thread