FROM : Pascal Pochet
DATE : Wed Jul 19 17:45:10 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/p3consulting%
> 40mac.com
>
> This email sent to <email_removed>
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_removed>
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF
DATE : Wed Jul 19 17:45:10 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/p3consulting%
> 40mac.com
>
> This email sent to <email_removed>
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_removed>
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF
| Related mails | Author | Date |
|---|---|---|
| Michael Lutz | Jul 19, 12:41 | |
| John C. Randolph | Jul 19, 13:27 | |
| Michael Lutz | Jul 19, 14:30 | |
| Stephane | Jul 19, 15:00 | |
| Michael Lutz | Jul 19, 16:10 | |
| Pascal Pochet | Jul 19, 16:33 | |
| Andreas Mayer | Jul 19, 16:40 | |
| Stephane | Jul 19, 16:46 | |
| Michael Lutz | Jul 19, 17:11 | |
| Pascal Pochet | Jul 19, 17:45 | |
| Andreas Mayer | Jul 20, 00:22 |






Cocoa mail archive

