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
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 mails | Author | Date |
|---|---|---|
| Boisy G. Pitre | Dec 23, 15:17 | |
| stephane sudre | Dec 23, 15:21 | |
| Boisy G. Pitre | Dec 23, 16:01 | |
| stephane sudre | Dec 23, 16:17 | |
| stephane sudre | Dec 23, 16:22 | |
| Faizel Dakri | Dec 23, 16:31 | |
| Boisy G. Pitre | Dec 23, 20:20 | |
| Guy English | Dec 23, 22:57 | |
| Boisy G. Pitre | Dec 24, 19:09 | |
| mmalcolm crawford | Dec 24, 23:16 |






Cocoa mail archive

