• 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: multiple windowcontrollers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple windowcontrollers


  • Subject: Re: multiple windowcontrollers
  • From: Darrin Cardani <email@hidden>
  • Date: Thu, 24 Jun 2004 08:36:53 -0500

At 10:00 PM -0700 6/23/04, Koen van der Drift <email@hidden> wrote:
I have a document based app with a main window and another window that
displays some info on the contents of the main window. I might even
add a third window used as a 'search window'.

Is it correct to add more than one wndowControllers in MyDocument:

-(void)makeWindowControllers
{
IDMainWindowController *controller = [[IDMainWindowController
allocWithZone:[self zone]] init];
IDSecondWindowController *secondController =
[[IDSecondWindowController allocWithZone:[self zone]] init];

[self addWindowController:controller];
[self addWindowController:secondController];

[controller release];
[secondController release];
}

That's essentially how I've done it.

I don't want the 2ndWindow to open immediately, but only after the user
selects a menu item.

Just uncheck the "visible on open" trait in Interface Builder.

Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: multiple windowcontrollers
      • From: Mike Ferris <email@hidden>
  • Prev by Date: Re: Register for a protocol (e.g. mine://)
  • Next by Date: RE: kCFPreferencesAnyUser w/PreferencePane not working?
  • Previous by thread: Re: multiple windowcontrollers
  • Next by thread: Re: multiple windowcontrollers
  • Index(es):
    • Date
    • Thread