• 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: Wed, 12 Sep 2001 22:36:09 +0200

It seems to me this thread is going to last forever ;-)

2 options (what we just discussed before):

- You use a CustomView for MyOpenGLView in IB and in this case
-initWithFrame: is invoked when the nib is loaded(*).
- You choose the actual subclass in the inspector from the dragged in
NSOpenGLView. In this case initWithCoder: is invoked when the nib is
loaded.

(*)But that is true that -initWithFrame:pixelFormat: is NSOpenGLView's
designated initializer and is the one to subclass (initWithFrame: is
implemented in terms of it).

Raphael

On Wednesday, September 12, 2001, at 09:32 PM, Peter Ammon wrote:

> FYI, NSOpenGLViews are initialized from IB using initWithFrame:
> pixelFormat:, not initWithFrame:. If you want to initialize it in the
> init method, that's the one to override.
>
> -Peter


References: 
 >Re: Cocoa Open GL help (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Can I use more than one controller in same application
  • Next by Date: Re: penPat equivalent in cocoa?
  • Previous by thread: Re: Cocoa Open GL help
  • Next by thread: Re: Cocoa Open GL help
  • Index(es):
    • Date
    • Thread