• 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 15:11:30 +0200

objects in nib files are inited with :

-initWithFrame: (NSView subclasses)
-init (other objects)

So, you should override initWithFrame, I believe.

-awakeFromNib, on the other hand is invoked after all nib objects have been brought to life.


Raphael

On Tuesday, September 11, 2001, at 02:29 PM, Brent Gulanowski wrote:

Lesson 2 was ported already to Cocoa, check that out. It's very primitive,
but it will get you started.

Teapot uses NSTimers to call the rendering loop. You can also try calling
-performSelector:withObject:delay: at the end of your rendering method (have
it call itself with a nil object, it works fine).

I'm personally having trouble figuring out why my -init method for
MyOpenGLView isn't being called. It's a nib object; should I put init stuff
into awakeFromNib? I'll probably find the answer somewhere in Vermont
Recipes but a hint would be nice :)


  • Follow-Ups:
    • Re: Cocoa Open GL help
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: Cocoa Open GL help (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Next by Date: Re: Cocoa Open GL help
  • Previous by thread: Re: Cocoa Open GL help
  • Next by thread: Re: Cocoa Open GL help
  • Index(es):
    • Date
    • Thread