NSView not initialized and unusable
NSView not initialized and unusable
- Subject: NSView not initialized and unusable
- From: Arthur VIGAN <email@hidden>
- Date: Sun, 29 Sep 2002 18:28:23 +0200
Hi,
I have a little problem with a custom NSView. I have created a view to
display simple things (DisplayView), and I subclassed it in order to
draw things in that view (DrawingView). I would like to add to another
application. So in my NIB file, I haded a window (drawingWindow)
containing that custom view, and I added a the following method to my
application controller:
- (IBAction)openDrawingWindow:(id)sender
{
[drawingWindow makeKeyAndOrderFront:sender];
}
But when the window opens, the DrawingView is not initialized (althoug
its superclass is), and I can't draw in it.
The strange thing is that if I had the view in my app main window, it
works perfectly. What did I make wrong? Could it be a problem of first
responder?
Thanks in advance,
Arthur
_______________________________________________
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.