• 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: 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.


References: 
 >Re: Cocoa Open GL help (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Cocoa Open GL help
  • Next by Date: Re: UMLish modellers?
  • Previous by thread: Re: Cocoa Open GL help
  • Next by thread: Re: Cocoa Open GL help
  • Index(es):
    • Date
    • Thread