• 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: Carlos Weber <email@hidden>
  • Date: Wed, 12 Sep 2001 06:26:00 -1000

On Wednesday, September 12, 2001, at 05:53 , Vince DeMarco wrote:

If you use a CustomView and set the class to MyOpenGLView then initWithFrame: will get called but if MyOpenGLView is set as a custom class to the NSOpenGLView that you drag in from the palette, the initWithFrame: method on MyOpenGLView will never get called.

Am i just confusing everyone or is this explanation helping????

I think the confusion is between the above two different methods (in IB) of getting an NSOpenGLView (or custom subclass thereof) into your view or window: starting with dragging a CustomView widget (initWithFrame: is called) versus starting with the NSOpenGLView widget (initWithFrame: never called if you have subclassed). There are example projects out there employing both methods, and until this distinction registered with me it was difficult for me to figure out why things were being done so differently in the different examples.


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

  • Prev by Date: Re: *That* book
  • 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