Re: Compositing grid over custom view
Re: Compositing grid over custom view
- Subject: Re: Compositing grid over custom view
- From: edward taffel <email@hidden>
- Date: Mon, 01 Sep 2014 19:19:02 -0400
you may wish to investigate the quartz blend modes, e.g. kCGBlendModeDifference might work for you.
On Sep 1, 2014, at 3:53 PM, Luc Van Bogaert <email@hidden> wrote:
> Hello,
>
> I'm trying to find a way to draw a grid (NSBezierPath 'lines') in a custom nsview so that it is always visible, regardless of the underlying color.
> I'm using a transparency layer to draw the grid, and I have tried various NSCompositeOperation settings without succes. Is this at all possible using the standard cocoa drawing features, or will I need OpenGL or some other graphics library?
>
> Thanks
> --
> Luc Van Bogaert
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden