Re: NSScrollView and general IB annoyance
Re: NSScrollView and general IB annoyance
- Subject: Re: NSScrollView and general IB annoyance
- From: "Lizardo H. C. M. Nunes" <email@hidden>
- Date: Sun, 30 Sep 2001 18:57:36 -0300
----------
>
From: Brian Hook <email@hidden>
>
To: email@hidden
>
Subject: NSScrollView and general IB annoyance
>
Date: Sun, Sep 30, 2001, 2:29 PM
>
>
Okay, "Learning Cocoa" isn't the greatest book in the world, and now some
>
of its incompleteness and seemingly fractured organization is coming back
>
to haunt me, but I'd still be royally screwed if the book didn't
>
exist. That said...
>
>
So I'm working on ToDo.app and the text nonchalantly mentions that I should
>
make a panel with various controls and "a scroll view". So I naturally
>
assume, "Hey, I'll drag a scroll view from the IB palette!".
I'm a Newbie as you are, so somebody correct me if I'm wrong.
You can drag a Custom View from the View palette to your NSWindow (or
NSPanel) and subclass it as a NSScrollView. Using awakeFromNib or the proper
init method you can "create" it pasting the methods found in Cocoa
Documentation for this class.
I have to test it yet, but I think that you can create several outlet
variables inheriting from NSMatrix, NSView and so on... Each outlet should
be "created" accordingly and your nib would have a complex behavior.
In short, I think that only User Interface Elements are displayed on the
palettes.
Also, I regret that Learning Cocoa can't give me the hints that I need to
really understand what is underneath the Cocoa surface.
Lizardo H. C. M. Nunes
...But we preach Christ crucified, to the Jews a stumbling block, and to the
Greeks foolishness;(...)but God has chosen the foolish things of the world
to confound the wise, and God has chosen the weak things of the world to
confound the things which are strong;(I Cor.1:23&27)