• 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 Windows and Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Windows and Cocoa


  • Subject: Re: Multiple Windows and Cocoa
  • From: Andre Bocchini <email@hidden>
  • Date: Tue, 9 Sep 2003 22:22:13 -0500

I think you have to subclass NSWindowController, and then do something like this in the init method:

self=[super initWithWindowNibName:@"NibName"];

(http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSWindowController.html)

And then, you put something like this:

myNSWindowController=[[MyNSWindowControllerController alloc] init];

in the method that will be called when the button is clicked.

Maybe someone with a little more experience can confirm that? Anyway, it's a start.

-- Andre

On Tuesday, September 9, 2003, at 08:52 PM, James McConnell wrote:

Hey all, as I'm sure you're all aware, I'm new to Cocoa and I have a
question about using multiple windows. I'm creating a Recipe Manager type
application for my wife, and I'm wondering how to instantiate one window
from another. This is what I want to do:

I have one window that contains a NSTableView that will display results from
a database when opened (that's further ahead than now). The user will
select one row, the cookbook they want to view, and that will load a new
window that will display all the recipes from that cookbook in a new window
with tabs for each recipe.

Right now, all I'm concerned about is getting the action of a button on one
window to load a new window. I'll be doing some research in the API to see
if anything pops out at me, so I'll be looking as well. Any hints would be
great. Thanks, guys.

James
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Multiple Windows and Cocoa (From: James McConnell <email@hidden>)

  • Prev by Date: Multiple Windows and Cocoa
  • Next by Date: Boost Libraries and Project Builder
  • Previous by thread: Multiple Windows and Cocoa
  • Next by thread: Re: Multiple Windows and Cocoa
  • Index(es):
    • Date
    • Thread