Re: Getting the background colour for NSBox?
Re: Getting the background colour for NSBox?
- Subject: Re: Getting the background colour for NSBox?
- From: Andreas Mayer <email@hidden>
- Date: Mon, 13 Sep 2004 23:46:52 +0200
Am 13.09.2004 um 20:43 Uhr schrieb Sean McBride:
Thanks Andore! I subclassed NSTextView and tried this, but I still
get a
black rectangle. :(
Maybe your text view is inside a scroll view and the scroll view is
still opaque (not transparent)?
But in any case, if I take this approach, I must use 'CustomView' in
IB,
right??
No. You select the text view in IB, open the 'Custom Class' pane in the
inspector and choose your subclass.
I assume NSColor is lacking a method
similar to windowFrameColor but for NSBox? That would be perfect.
No, it would not. You'd still have to change the color according to the
background on which you place your view. That's not what you really
want to achieve. You want the background to be visible through your
view; so you should make it transparent.
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden