• 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: email@hidden
  • Date: Wed, 10 Sep 2003 14:22:47 +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 he "isVisible:YES".

Actually, I just took a look at the Apple developer site and the "isVisible:"
message should not be necessary; the "makeKeyAndOrderFront:" message should
also make the window visible.

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

  • Follow-Ups:
    • Re: Multiple Windows and Cocoa
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Async output ready notification for file descriptors
  • Next by Date: RE: replaceOccurrencesOfString not recognized?
  • Previous by thread: Re: Multiple Windows and Cocoa
  • Next by thread: Re: Multiple Windows and Cocoa
  • Index(es):
    • Date
    • Thread