Re: Cocoa Open GL help
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