How do I prevent initWithFrame (NSView) being called?
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.