• 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: Newbie interface questions - multiple "modal" windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie interface questions - multiple "modal" windows


  • Subject: Re: Newbie interface questions - multiple "modal" windows
  • From: "Michael Ash" <email@hidden>
  • Date: Tue, 17 Jun 2008 08:38:44 -0700

On Mon, Jun 16, 2008 at 7:06 PM, Omar Qazi <email@hidden> wrote:
> On Jun 16, 2008, at 4:38 PM, Matthew Youney wrote:
>>
>> 1.      What is the best way to instantiate the "other" windows?  In this
>> application, all of the windows are quite unique, and there will never be
>> more than one instance of each.  Should this be done in the "main"
>> controller by loading the NIB, instantiating the other controller, and
>> then
>> showing the window?
>
> I agree that this sounds like a bad idea, but if you have good reason to,
> you might want to have a NSWindowController and nib for each window.

I disagree that this sounds like a bad idea.Having one
NSWindowController and nib per window is a fantastic idea, and is how
everything should be done. Breaking your program into smaller modules
is a fundamental part of programming and it's one of the best things
you can do to make the program easier to write, easier to modify, and
easier to understand.

Mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Newbie interface questions - multiple "modal" windows (From: "Matthew Youney" <email@hidden>)
 >Re: Newbie interface questions - multiple "modal" windows (From: Omar Qazi <email@hidden>)

  • Prev by Date: question on layer setup in Covertflow sample code
  • Next by Date: Re: Prevent Asynchronous operation of beginSheetModalForWindow
  • Previous by thread: Re: Newbie interface questions - multiple "modal" windows
  • Next by thread: NSSound thread-safety?
  • Index(es):
    • Date
    • Thread