• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the background colour for NSBox?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting the background colour for NSBox?
      • From: "Sean McBride" <email@hidden>
References: 
 >Re: Getting the background colour for NSBox? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Embedding other WebViews?
  • Next by Date: Re: Cocoa-dev Digest, Vol 1, Issue 16
  • Previous by thread: Re: Getting the background colour for NSBox?
  • Next by thread: Re: Getting the background colour for NSBox?
  • Index(es):
    • Date
    • Thread