• 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: Using one NSWindow to open many NSWindows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using one NSWindow to open many NSWindows?


  • Subject: Re: Using one NSWindow to open many NSWindows?
  • From: Gore <email@hidden>
  • Date: Sun, 27 Jan 2002 20:18:47 +0200

AHH! yeah...now I understand =)

thx for the help!

On Sunday, January 27, 2002, at 08:07 , Carlos Weber wrote:

On Sunday, January 27, 2002, at 03:54 , Gore wrote:

I want to create my own alert panel, but the content of my alert panel should be different depending on the message I want to be shown, that's why I can't use one NSWindow instance because it will display the latest message on every alert panel...so how do I display many nswindows with different messages using one "template"? should I use some bundle things...or something like that?

Sounds like you want to create a separate nib file in IB to lay out your alert panel, then instantiate its window anew for each of your various alerts. Your hard disk contains an example to get you started, at

/Developer/Examples/InterfaceBuilder/SimpleMultiWindow/

altho in that example the code is written to ensure that the second window is instantiated only once, and recycled if called again. Starting from there, you can figure out how to do it the way you want.
_______________________________________________
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: 
 >Re: Using one NSWindow to open many NSWindows? (From: Carlos Weber <email@hidden>)

  • Prev by Date: Re: How ATTRACTIVE is CoCoa development?
  • Next by Date: Re: [LONG] Making the right choice (was Re: How viable is Cocoa development?)
  • Previous by thread: Re: Using one NSWindow to open many NSWindows?
  • Next by thread: Re: Using one NSWindow to open many NSWindows?
  • Index(es):
    • Date
    • Thread