• 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
How do I prevent initWithFrame (NSView) being called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I prevent initWithFrame (NSView) being called?


  • Subject: How do I prevent initWithFrame (NSView) being called?
  • From: Hisaoki Nishida <email@hidden>
  • Date: Sun, 23 Jun 2002 03:27:43 -0400

Hi,

I have a situation where I need to prevent a subclass of NSOpenGLView from being called initWithFrame.
This is to examine beforehand if a user wants a window or full-screen (by reading user prefs), and I want the initWithFrame method to be called only when the user wants a window. If the user wants full-screen, then I don't want to load the nib/create a window, just create a full-screen OpenGL context. So I want to take the roll of calling initWithFrame on my view only when I want to.

Also, in a related matter, is it possible initialize my view(and window) using dynamic rect size from user prefs, and not the static value in the nib?

I have no idea how to do this.
Any solutions?

Thanks!

-Yuki
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Learning Cocoa / Cocoa Programming for Mac OS X - comments
  • Next by Date: Rollover buttons
  • Previous by thread: Re: Changing formatter for specific cells in the same table column?
  • Next by thread: Re: How do I prevent initWithFrame (NSView) being called?
  • Index(es):
    • Date
    • Thread