Re: Multiple Windows and Cocoa
Re: Multiple Windows and Cocoa
- Subject: Re: Multiple Windows and Cocoa
- From: email@hidden
- Date: Wed, 10 Sep 2003 14:16:21 +0000
>
Well, this isn't a document based app. Basically, it's a program used to
>
create and store recipes. It's for my wife, but I could release it if I
>
think it's decent enough. I have one window that shows the available
>
cookbooks. They select one, and click a button that opens a new window and
>
populates that window with tabs that contain the individual recipes (all
>
pulled from database, not my concern right now). Each tab will have the
>
recipe details like ingredients, directions, etc. I'll also have other
>
windows needed for creating recipes, adding ingredients and all of that.
>
>
If someone thinks I can accomplish this using a document based app, any help
>
would be appreciated.
It doesn't need to be a document-based app. Basically, you can just create
the two windows in the main NIB file. Make your pop-up window initially
invisible and also make sure it's not set to release when closed. To show the
window, just send an "isVisible:YES" message to it. You also will probably
have to send "makeKeyAndOrderFront:". The data for the window can be set up
in the window's controller class before sending the "isVisible:YES".
I'm not sure about the best way to close it. It's possible that the default
behavior will work, but I'd have to experiment around a little bit.
_______________________________________________
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.