• 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
Re: NSDrawerWindow - using it is okay?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDrawerWindow - using it is okay?


  • Subject: Re: NSDrawerWindow - using it is okay?
  • From: Axel Andersson <email@hidden>
  • Date: Fri, 18 Mar 2005 17:04:56 +0100

On Mar 18, 2005, at 13:33, Simon Liu wrote:

I have subclassed tableviews, outlineviews and cells for custom
drawing purposes, and some of the highlighting is based on whether or
not the tableview's window is the keyWindow or not.  It's quite
'elegant' and easy to be able to invoke -window, -keyWindow without
worring whether the window is a NSWindow or NSDrawerWindow.  Otherwise
I'll have to go and get the NSDrawer and invoke -parentWindow... Not a
big deal, but would be interested in any comments.

That your tableview returns an NSDrawerWindow instance in this case is implementation specific. NSView is bound by the contract stipulated in the header, and must return something that can be used as an NSWindow from its -window method. However, it's free to return, for instance, an NSWindow subclass of its own choosing; NSDrawerWindow is such a subclass. The point here is that you don't need to know what it actually is, just what the header says it is.


Hope this helps,

--
Axel Andersson
email@hidden
http://www.zankasoftware.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSDrawerWindow - using it is okay?
      • From: Douglas Davidson <email@hidden>
References: 
 >NSDrawerWindow - using it is okay? (From: Simon Liu <email@hidden>)

  • Prev by Date: Re: dotmac framework wrappers?
  • Next by Date: RE: [NSKeyValueArray removeObjectAtIndex:]: selector not
  • Previous by thread: NSDrawerWindow - using it is okay?
  • Next by thread: Re: NSDrawerWindow - using it is okay?
  • Index(es):
    • Date
    • Thread