• 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
Re: Cocoa Open GL help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Open GL help


  • Subject: Re: Cocoa Open GL help
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 12 Sep 2001 10:38:12 +0200

Raphael,

>>>>>> Raphael Sebbe (RS) wrote at Wed, 12 Sep 2001 09:57:57 +0200:
RS> As we were talking about MyOpenGLView, subclass of NSOpenGLView from the
RS> previous posts, that is why I suggested -initWithFrame: for
RS> initialization stuff, which for me is different from setup stuff
RS> (-awakeFromNib).

Well, for the current implementation you are right. But... so far as I
understand the nib loading, there is no guarantee that -initWithFrame: will
be used in future (agreed, just now I don't see any reasonable implementation
without that, but that might only mean that I'm blind, not that there is not
any!).

Or just imagine that in future release of the software the MyOpenGLView
makes it to a private framework and to a private palette. Oops,
-initWithFrame: stopped working!

OTOH, awakeFromNib is guaranteed to work with all foreseeable
NIBs/InterfaceBuilders and with all objects in a NIB.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Re: Cocoa Open GL help (From: Raphael Sebbe <email@hidden>)

  • Prev by Date: Re: Would Any Developers Use This?
  • Next by Date: Re: Would Any Developers Use This?
  • Previous by thread: Re: Cocoa Open GL help
  • Next by thread: Re: Cocoa Open GL help
  • Index(es):
    • Date
    • Thread