Re: See-through custom NSView
Re: See-through custom NSView
- Subject: Re: See-through custom NSView
- From: Pascal Pochet <email@hidden>
- Date: Wed, 19 Jul 2006 17:45:10 +0200
Le 19-juil.-06 à 17:11, Michael Lutz a écrit :
Hello all,
thanks to all who helped solving this issue. Either solution
(Stephanes/Andreas and Pascals) works. It seems that when using
NSBezierPath for filling the Rect or, when not filling the Rect at
all, one has to go with the ClipView.
While I am glad that it's working now, has anybody hints on what's
technically going on there (pointers to documentation), why
NSBezierPath works differntly to NSRectFill? As it seems I have
some knowledge gaps there...
Thanks again,
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
NSRectFill uses NSCompositeCopy
when
[NSBezierPath fill] uses the current graphics context's one, which is
by default NSCompositeSourceOver
add
NSLog(@"%d %d",[[NSGraphicsContext currentContext]
compositingOperation],NSCompositeCopy) ;
in your drawRect to see by yourself…
2006-07-19 17:40:44.506 ClearView[27284] 2 1
Pascal Pochet
email@hidden
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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