Re: How many times will a sub-classed NSView be instantiated in a simple Cocoa App?

2008-05-24 Thread Nathan Kinsinger
On May 24, 2008, at 6:09 PM, Graham Reitz wrote: Awesome! Thanks Nathan. That makes a lot more sense to me. Just set the class of the Custom View. What do you specifically mean by 'set the class'? In IB select the view then select the Identity Inspector (cmd-6 or the icon with the "i"

Re: How many times will a sub-classed NSView be instantiated in a simple Cocoa App?

2008-05-24 Thread Graham Reitz
Awesome! Thanks Nathan. That makes a lot more sense to me. Just set the class of the Custom View. What do you specifically mean by 'set the class'? graham On May 24, 2008, at 7:01 PM, Nathan Kinsinger wrote: On May 24, 2008, at 5:43 PM, Graham Reitz wrote: (fyi) I am coming from the n

Re: How many times will a sub-classed NSView be instantiated in a simple Cocoa App?

2008-05-24 Thread Nathan Kinsinger
On May 24, 2008, at 5:43 PM, Graham Reitz wrote: (fyi) I am coming from the non Mac C++ land and I am trying to grok Obj-C and the Cocoa framework. 1) Create a simple Cocoa application 2) Open IB and drag a Custom View over to the Window 3) Drag an Object to MainMenu.nib You don't need to

How many times will a sub-classed NSView be instantiated in a simple Cocoa App?

2008-05-24 Thread Graham Reitz
(fyi) I am coming from the non Mac C++ land and I am trying to grok Obj-C and the Cocoa framework. 1) Create a simple Cocoa application 2) Open IB and drag a Custom View over to the Window 3) Drag an Object to MainMenu.nib 4) Name the Custom View and Object to the same class name 5) Write the c