awakeFromNib being called twice?
awakeFromNib being called twice?
- Subject: awakeFromNib being called twice?
- From: Jesse Thompson <email@hidden>
- Date: Sun, 25 Jul 2004 18:20:24 -0700
'm writing an OpenGL program in C++, but am using Objective-C++ /
Cocoa for the GUI front-end. For some reason awakeFromNib,
initWithFrame:, and initGL are all being called twice. awakeFromNib is
responsible for calling a C++ function within one of my C++ back-end
classes which creates a list of objects.... Now does this mean that I
have two instances of this list? Is it normal for these functions to
be executed twice? If not, any suggestions on how to fix it? I've done
a little bit of searching and it seems to be a bi-product of
NSDocument based programs, but this is just subclassed OpenGLView. So
the header of my one and only Objective-C++ class is:
@interface MyOpenGLView : NSOpenGLView
Appreciate any help you can give me.
_______________________________________________
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.