• 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
See-through custom NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

See-through custom NSView


  • Subject: See-through custom NSView
  • From: Michael Lutz <email@hidden>
  • Date: Wed, 19 Jul 2006 12:41:55 +0200

Hi,

I know how to make e.g. a NSTextView transparent: Setting the window opacity to NO, no drawing of the NSTextViews background, etc.
The result is that I can see through the view and through the window. I can see the objects underneath the window.


Now I tried to accomplish the same with my NSView derived class using the same method, playing around with the isOpaque method (returning YES gives a white background, NO the striped window background), but I could not achieve the same see-through effect as with the NSTextView. (In the drawRect method I do nothing, but it is there)

Any ideas what I am missing here or what makes my view different from a NSTextView?

Thanks,
  Michael
_______________________________________________
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: See-through custom NSView
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Visual compiling, nodes programming ?
  • Next by Date: Re: See-through custom NSView
  • Previous by thread: Re: Virtual concept in Objective-C
  • Next by thread: Re: See-through custom NSView
  • Index(es):
    • Date
    • Thread