Re: Use Subclass in Interface Builder

2011-10-05 Thread Andy Lee
Yeah, I don't know if there's a logical reason why the "Custom View" object in IB is treated specially or if it's a historical artifact. --Andy On Oct 5, 2011, at 2:51 AM, Dong Feng wrote: > Thank you, Andy. > > But slightly wired that NSOpenGLView isn't considered as a custom view, > conside

Re: Use Subclass in Interface Builder

2011-10-04 Thread Dong Feng
Thank you, Andy. But slightly wired that NSOpenGLView isn't considered as a custom view, considering it itself is a subclass of NSView. Anyway at least I can count on the way it works. :-) 2011/10/5 Andy Lee > See "The Object Loading Process": > > < > http://developer.apple.com/library/mac/#d

Re: Use Subclass in Interface Builder

2011-10-04 Thread Andy Lee
See "The Object Loading Process": > a. Standard Interface Builder objects (and custom subclasses of those > objects) receive an initWithCoder:

Use Subclass in Interface Builder

2011-10-04 Thread Dong Feng
I have a subclass of NSOpenGLView which named POpenGLView. I tried two ways to use it in IB: Method 1: To create an OpenGL view in IB directly, and set its class type "POpenGLView". Method 2: To create a NSView in IB, and set its class type "POpenGLView". The most significant difference between