• 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
Getting window from custom view in drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting window from custom view in drawer


  • Subject: Getting window from custom view in drawer
  • From: Demitri Muna <email@hidden>
  • Date: Mon, 8 Jul 2002 12:18:40 -0700

Hello,

This is probably a single line of code question...

I have a custom view in a drawer. The view has no controls, it's simply a subclass of NSView that handles items dropped on it. How can I get a pointer to the parent window from within my view class? Normally, I would expect to call [myView window], but since it's in a drawer, I don't get what I'm expecting. Even getting a pointer to the NSDrawer would be fine, since I can get to the window from there.

Thanks!

Demitri
_______________________________________________
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: NSRect and the origin
  • Next by Date: Re: fill tableview exactly with tablecolumns
  • Previous by thread: Re: Problems
  • Next by thread: Help with coding Bar Charts
  • Index(es):
    • Date
    • Thread