• 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: Question about architecture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about architecture


  • Subject: Re: Question about architecture
  • From: Daniel Lopes <email@hidden>
  • Date: Mon, 13 Sep 2010 15:41:18 -0300

Thanks a lot for answer Chris, so I'm in the right direction.

Have good week.

--
Daniel Lopes


On Sat, Sep 11, 2010 at 7:18 AM, Chris Hanson <email@hidden> wrote:

> On Sep 9, 2010, at 7:32 AM, Daniel Lopes wrote:
>
> > My idea for organization is separate the entire content on the left side
> in
> > a new Nib called sidebar and set the FileOwner to a controller in Window
> > Nib. Also do the same thing for the right part of the Split View.
> >
> > That behavior the behavior to separate big "components" of the UI in
> > diferent nib's is right? Create custom views for the header is a good
> > pratice? I know this a big question but the answer will help me a lot.
>
> That’s a perfectly reasonable way to organize your application, and pretty
> much why NSViewController exists.
>
> You’d have, say, MySidebarController and MyContentController, both
> subclasses of NSViewController and with their own nibs, which you could
> instantiate in your NSWindowController subclass or its nib.  You’d get your
> NSViewController subclass’s views, and put them in or use them to replace
> the appropriate “placeholder” views in your main window.
>
> Similarly, when it comes to doing things like creating custom views for
> things like headers, that’s how it’s done in Cocoa.  Custom drawing is done
> by subclassing, not by using drawing tools on a nib.
>
>  -- Chris
>
>
_______________________________________________

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: 
 >Question about architecture (From: Daniel Lopes <email@hidden>)
 >Re: Question about architecture (From: Chris Hanson <email@hidden>)

  • Prev by Date: Timing of UI events
  • Next by Date: Re: INSTALL_PATH ignored in XCode
  • Previous by thread: Re: Question about architecture
  • Next by thread: Re: Question about architecture
  • Index(es):
    • Date
    • Thread