Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] GC.setXORMode on Cocoa


I am not sure setXORMode() can be implemented with NSGraphicsContext.  [NSGraphicsContext.setCompositingOperation:NSCompositeXOR] is a possibility, but I remember it does not work in some situations. Please open a bug report so that we can investigate.

Silenio


From: Dave Smith <dave.smith@xxxxxxxxxxx>
To: "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
Date: 09/30/2009 06:36 AM
Subject: [platform-swt-dev] GC.setXORMode on Cocoa
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx





I have a console based application that needs to display a cursor for the current position. We use the GC. setXORMode when drawing the cursor so the
cursor is the same colour as the text and the text at the cursor position is changed to a different colour so it is readable.

This works on all platforms (including carbon) except for Cocoa. I know that this is deprecated so is there a manual way to implement this in Cocoa ?

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top