| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Well, are you setting these up in IB? Views stored in NIB files created by IB (except for the custom NSView) are not initialized by calling initWithFrame: but by calling initWithCoder:. Also, do you mean that you have one instance of each of the sub-classes (of which there are two), or do you mean to say that you have one sub-class instantiated twice?_______________________________________________
Usually this kind of problem is an IB issue related whether or not you created the views as NSViews or NSOpenGLViews. In either case, you can later change their actual type to an instance of your custom class with the inspector. The difference being the way that the views are initialized at runtime when the NIB is loaded.
Hope that helps,
Jeff.
On Saturday, November 30, 2002, at 12:26 AM, Aaron Boothello wrote:
I'm making an application using Cocoa-OpenGL. i have 2 separate subclasses of OpenGLView each having their own initWithFrame function, but the second subclass never executes the code inside it's initWithFrame function. any help/tutorials/examples would be appreciated/Jeff Disher
Thanks,
Aaron.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
President and Lead Developer of Spectral Class
Spectral Class: Shedding Light on Innovation
http://www.spectralclass.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.