• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
awakeFromNib being called twice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: awakeFromNib being called twice?
      • From: Phill Kelley <email@hidden>
  • Prev by Date: Re: Automatically opening the firewall?
  • Next by Date: Startup Questons
  • Previous by thread: WebView Scroll to end
  • Next by thread: Re: awakeFromNib being called twice?
  • Index(es):
    • Date
    • Thread