Skip navigation.
 
mlRe: Nib file question
FROM : Boisy G. Pitre
DATE : Fri Dec 24 19:09:18 2004

On Dec 23, 2004, at 3:57 PM, Guy English wrote:

> Hey Boisy,
>
>    In your VirtualDriveController.h you'll need:
>
> IBOutlet NSView *virtualDriveView;
>
>    Drag VirtualDriveController.h into the instances pane in Interface
> Builder - that lets IB know all about your controller class - even
> though you're not actually going to make an instance of it.
>
>    Select the File's Owner in IB and open the inspector to Custom
> Class ( Apple-5 I think, not in front of a Mac right now. ) From the
> list of classes displayed select VirtualDriveController.
>
>    Now you can drag a line from your File's Owner to the view and
> connect it to vritualDriveView.
>
>    When you call [NSBundle loadNibNamed: @"VirtualDriveView" owner:
> self] the bundle loading code will connect your controllers
> virtualDriveView instance variable to the view you tied it to in IB.
> File's Owner is a stand in for the owner: argument in the call above.
>

Guy,

Thanks for the detailed explanation.  I had not realized that I could
reclassify File's Owner.  Now things are starting to make much more
sense to me.

Your instructions worked beautifully.  Now I am considering making
another class: VirtualDriveJukeBoxView (or as you have alluded to in
the past, driveBay).  This class would be subclassed from NSScrollView
and would handle any number of VirtualDriveViews placed on it.

Boisy

Related mailsAuthorDate
mlNib file question Boisy G. Pitre Dec 23, 15:17
mlRe: Nib file question stephane sudre Dec 23, 15:21
mlRe: Nib file question Boisy G. Pitre Dec 23, 16:01
mlRe: Nib file question stephane sudre Dec 23, 16:17
mlRe: Nib file question stephane sudre Dec 23, 16:22
mlRe: Nib file question Faizel Dakri Dec 23, 16:31
mlRe: Nib file question Boisy G. Pitre Dec 23, 20:20
mlRe: Nib file question Guy English Dec 23, 22:57
mlRe: Nib file question Boisy G. Pitre Dec 24, 19:09
mlRe: Nib file question mmalcolm crawford Dec 24, 23:16