[fbcocoa] Re: [fbcocoa] ToNibOrNotToNib

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2012 : Group Archive : Group : All Groups

From: Deep <Info@...>
Date: Fri, 10 Feb 2012 09:05:33 +0000

On 08/02/2012 23:57, Brian S wrote:
>
> On Feb 8, 2012, at 3:53 PM, Robert Covington wrote:
>
>> I don't think those few k amount to much.
> I agree. Most users wouldn’t notice if the size is 250k vs. 300k. For me
> other factors are more important than the size of the bundle( but these
> aren’t necessarily related to nibs/no nib ). Steve mentioned durability
> on the FB list, or as I think of it, the apps ability to survive Apple’s
> technical eco system changes. Another item is development ease and just
> as important, maintenance ease. Speed and/or app responsiveness is also
> important. I only look at app size if a) it is a significant size
> difference AND b) the difference impacts speed/responsiveness. Nibs
> offer some technologies which I don’t know how to implement in code (
> e.g. Cocoa bindings ). For the FB lists, posting nibs takes extra steps
> ( zipping the file, putting it on a web server and sending the list a
> link to it ----and I’d be happy to help if folks need an assist with
> this ), and the majority of FBers wouldn't know how to interpret the
> links ( i.e.outlets etc. ) inside a Cocoa nib, so sending just code to
> the FB list(s) makes sense. Whether or not it makes sense for the
> individual developer is another question. Another consideration ( but
> not a clincher ): Apple recommends nib usage.
>
> Brian S

Completely agree.

Steve's examples (and some from others) show how it is done, but could 
anyone point me in the direction for the documentation to all that 
syntax? I would prefer to avoid IB if possible.

In Xcode/IB, when making an example Cocoa app, it automatically makes 
the menu bar, simple window, About this mac window, and Window menu 
which lists windows, etc.

Does anyone have a sample that can be used to achieve this same goal? I 
am assuming it is all built into Cocoa, and that IB only harnesses it 
for you, so should be possible to harness via code?

In the FB Examples, there is FBShell which uses Carbon Events but uses 
nibs. What I am asking is whether anyone has a similar Cocoa version, 
but also without using a nib?