• 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: Instantiate custom NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instantiate custom NSWindow


  • Subject: Re: Instantiate custom NSWindow
  • From: mmalc crawford <email@hidden>
  • Date: Mon, 24 Sep 2007 12:02:30 -0700


On Sep 24, 2007, at 11:41 AM, Jere Gmail wrote:

the window is populated in Interface builder. And I have an outlet to
that window, but I wanna be able to display the window twice.

You're almost certainly approaching this the "wrong" way.
Cocoa has different design patterns than those you're probably used to -- as Fritz indicated, for example it's unusual to subclass NSWindow unless you want to create a custom look for it.


I would suggest reviewing <http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/index.html >.

If you actually want to display two windows, then consider factoring the UI into a separate nib file -- see <http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CoreAppArchitecture/chapter_7_section_8.html > (from the reference above) and <http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/chapter_3_section_1.html >.

mmalc

_______________________________________________

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


  • Follow-Ups:
    • Re: Instantiate custom NSWindow
      • From: "Jere Gmail" <email@hidden>
References: 
 >Instantiate custom NSWindow (From: "Jere Gmail" <email@hidden>)
 >Re: Instantiate custom NSWindow (From: Fritz Anderson <email@hidden>)
 >Re: Instantiate custom NSWindow (From: "Jere Gmail" <email@hidden>)

  • Prev by Date: Re: best way to deal with resizable controls that can go to zero?
  • Next by Date: Re: Instantiate custom NSWindow
  • Previous by thread: Re: Instantiate custom NSWindow
  • Next by thread: Re: Instantiate custom NSWindow
  • Index(es):
    • Date
    • Thread