• 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
Getting the background colour for NSBox?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the background colour for NSBox?


  • Subject: Getting the background colour for NSBox?
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 13 Sep 2004 02:40:28 -0400

I'm trying to make an NSTextView that looks like an NSTextField, that is:
no border, no background colour, single line high, etc.  After a lot of
messing about, I'm almost there.  In fact, it's fine if the NSTextView is
in the window itself if I do this:

[textView setBackgroundColor:[NSColor windowFrameColor]];

But my NSTextView is a subview of an NSBox, which has a slightly darker
grey stripe kind of look (10.3.5).  I've looked in NSColor and tried
every color in the 'developer' list of the colour picker but none are right.

How do I get the NSColor for the background colour of an NSBox?

Thanks!



 _______________________________________________
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: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Multiple Copies of a window
  • Next by Date: About NSOutlineView's question
  • Previous by thread: Re: Multiple Copies of a window
  • Next by thread: Re: Getting the background colour for NSBox?
  • Index(es):
    • Date
    • Thread