Re: Question about architecture
Re: Question about architecture
- Subject: Re: Question about architecture
- From: Laurent Daudelin <email@hidden>
- Date: Thu, 9 Sep 2010 13:53:11 -0700
One of the main reason to split different views in different nibs is that it speeds up launch time. If all your views are in the same, "MainWindow" nib, then all those views need to be instantiated and their outlets connected when your app starts. So, the idea is to segment those views in different nibs that you can load on demand only when you need them. For example, if you have a preferences window, you can put it into a separate nib. That way, it's not loaded until the user choose the preferences.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
On Sep 9, 2010, at 12:58, Daniel Lopes wrote:
> Thanks Richard, actually I already read Hillegass book. Right now, my
> material to study is http://pragprog.com/titles/dscpq/cocoa-programming it
> is pretty good. I also already watched all PragProg screencasts related to
> cocoa.
>
> But the problem with learn Cocoa is how apply the best pratices that are
> exclusevely to Cocoa. Things like how to organize nibs, when I should
> separate or not views, create custom views or not and etc. As soon as finish
> Coco Programming I will read Cocoa Design Patterns.
>
> But what you think about separate custom views in diferent nibs? Is that
> right?
>
> Thanks.
>
> --
> Daniel Lopes
>
>
> On Thu, Sep 9, 2010 at 4:44 PM, Richard Somers
> <email@hidden>wrote:
>
>> On Sep 9, 2010, at 8:32 AM, Daniel Lopes wrote:
>>
>> Hello, I'm learning Cocoa and Objc and enjoying a lot, especially because
>>> my background is in Ruby and both languages are basically the same thing
>>> except for the syntax.
>>>
>>> But what I don't understand very well and neither find good guidelines is
>>> how architect my app.
>>>
>>
>> You might try 'Cocoa Programming for Mac OS X', Third Edition, by
>> Hillegass. You might also take a look at 'Cocoa Design Patterns' by Buck and
>> Yacktman.
>>
>> I am not familiar with Ruby, but if you are having problems in cocoa seeing
>> the forest for the trees, perhaps you need to do some more homework.
_______________________________________________
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