[Openmcl-devel] Problem with Interface Builder bindings

Kevin Reid kpreid at mac.com
Thu Feb 28 18:37:53 UTC 2008


On Feb 28, 2008, at 10:57, Didier Verna wrote:

> [ BTW, in order to let IB know that the class of the File's Owner is a
>   subclass of NSView, I had to write a fake .h file with an equivalent
>   definition and have IB read it. Not sure if it's the way to go... ]

In IB's class browser, you can right-click on NSView and choose to  
subclass it; then use the inspector to add the actions and outlets.

In general, the effects of reading an .h file can be reproduced  
manually; particularly, IB also supports generating the .h and .m  
from your interactive definition.

(I haven't used IB in a while; the interface may have changed  
somewhat. There may also be a way to specify the superclass of a  
class after creating it.)

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>





More information about the Openmcl-devel mailing list