• 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
NSView not initialized and unusable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: [NEWBIE QUESTION] What message is sent when window contents finish loading?
  • Next by Date: Re: DateFormatter in a table?
  • Previous by thread: Re: Optimizing drawing by caching
  • Next by thread: URLHandleUsingCache won't cache
  • Index(es):
    • Date
    • Thread