• 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: plain white boxes/views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plain white boxes/views


  • Subject: Re: plain white boxes/views
  • From: August Trometer <email@hidden>
  • Date: Tue, 14 Feb 2006 22:31:50 -0500

Yes, what you need to do is subclass NSBox and override the drawRect: method to get the effect you're looking for.

-- August


On Feb 14, 2006, at 7:59 PM, Mike Abdullah wrote:

In one of my windows, I have a number of controls inside an NSBox. However, I want this box to display it's background as pure white rather than its usual pinstriped grey. What is the easiest way of achieving this? Does it require a full subclass of NSBox or NSView?

For more of an idea of what I'm aiming at, fire up Garageband and have a look at the window that appears when there is no project open. This white effect is what I'm aiming for.

Thanks,
Mike A.
_______________________________________________
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

_______________________________________________ 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: plain white boxes/views
      • From: Mike Abdullah <email@hidden>
References: 
 >plain white boxes/views (From: Mike Abdullah <email@hidden>)

  • Prev by Date: NSConditionallySetsEditable
  • Next by Date: Re: Best way to customize Cocoa
  • Previous by thread: plain white boxes/views
  • Next by thread: Re: plain white boxes/views
  • Index(es):
    • Date
    • Thread