Transparent NSTextField and annoying black square
Transparent NSTextField and annoying black square
- Subject: Transparent NSTextField and annoying black square
- From: Yann Bizeul <email@hidden>
- Date: Thu, 14 Nov 2002 14:09:51 +0100
- Resent-date: Fri, 15 Nov 2002 15:07:53 +0100
- Resent-from: Yann Bizeul <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
Hi there,
I'm trying to create a trasparent text field inside a borderless window.
So, I create a new NSWindow like this :
[ logWindow
initWithContentRect: logWindowRect
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreBuffered
defer: NO
];
And set hist content view to the one I made in InterfaceBuilder.
Inside this view there is a TextField with transparent background
(opacity 0%) and I always get a black square in the bottom left corner
of my window :
[demime 0.98b removed an attachment of type image/tiff which had a name of pastedGraphic1.tiff]
When I dbl click the textfield in IB to edit the TextView directly, I=20
see that his top/left y value is -173 (red) and I'm afraid the black=20
square is 173 pixels.
I think this is a bug in IB, but how to solve it ?
Thanks !
--=20
Yann Bizeul
TYNSOE.ORG -
http://www.tynsoe.org/
Site technique consacr=E9 =E0 MacOS X
--=20
Yann BIZEUL
LINAGORA
30, rue Saint-Augustin
75002 Paris
T=E9l. 01 58 18 68 35
Std. 01 58 18 68 28
Mob. 06 60 43 00 88=
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.