See-through custom NSView
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