Re: Cocoa Open GL help
Re: Cocoa Open GL help
- Subject: Re: Cocoa Open GL help
- From: Raphael Sebbe <email@hidden>
- Date: Tue, 11 Sep 2001 16:04:12 +0200
Well, you can stay *on surface* by telling -initWithFrame: is the way to
go, considering the original question is :
should I put init stuff into awakeFromNib?
More, -awakeFromNib can be invoked multiple times on the same object
(although this will obviously not be the case in this particular
example - a view object), typically for nib owners... So you shouldn't
[[ alloc] init] ivars there generally.
Raphael
On Tuesday, September 11, 2001, at 03:37 PM, Ondra Cada wrote:
Raphael,
Raphael Sebbe (RS) wrote at Tue, 11 Sep 2001 15:23:17 +0200:
RS> That is not true, see my previous mail. Custom classes that are
defined
RS> by the user are not loaded in IB (where would it find the executable
RS> anyway ?), but instead a proxy object is stored in the nib...
Yeah of course. I did not want to go to the detailed explanation, and
wanted
to stay "on the surface", from where 'awakeFromNib' is the way to go,
since
it is sent to all objects from NIB, regardless their classes and the
way ther
are stored there (or even are *not* stored there, since it works
properly
for the File's Owner too).
But of course you are perfectly right that some objects must be created.