Re: How do get transparent text background ?
Re: How do get transparent text background ?
- Subject: Re: How do get transparent text background ?
- From: Alexander Reichstadt <email@hidden>
- Date: Mon, 14 Jun 2004 20:21:16 -0700
Check out www.bignerdranch.com, there is a sample project with some
custom window in oval shape. I think that does what you want; worked
great for me, though I did this with NSTextFields, but that shouldn't
make a big difference.
Alex
On Friday, June 14, 2002, at 07:03 AM, RFM wrote:
Hello,
Does anyone know how to get text to only draw it's character (glyph)
without a background. I've tried setting the text storage attributes
using [NSColor clearColor] for the NSBackgroundColorAttributeName . I've
also tried calling [NSTextView setDrawsBackground:NO] which seems to
cause the layout manager to throw an exception with the following
message(s)
2002-06-14 10:00:06.118 *** NSRunStorage, _NSBlockNumberForIndex():
index (54) beyond array bounds (54)
2002-06-14 10:00:06.153 -[NSLayoutManager
_fillGlyphHoleAtIndex:desiredNumberOfCharacters:] *** attempted glyph
generation while textStorage is editing. It is not valid to cause the
layoutManager to do glyph generation while the textStorage is editing
(ie the textStorage has been sent a beginEditing message without a
matching endEditing.)
2002-06-14 10:00:06.156 *** NSRunStorage, _NSBlockNumberForIndex():
index (52) beyond array bounds (22)
any help would be greatly appreciated.
Thanks in advance,
Regards,
Bob M.
_______________________________________________
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.
_______________________________________________
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.