• 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: Mike Abdullah <email@hidden>
  • Date: Thu, 16 Feb 2006 01:04:28 +0000

Thanks August, I thought it would require that, but I wanted to make sure I wasn't trying to do things the hard way! In the end, I also used isOpaque and returned YES to more accurately reflect what the box does.

Mike.

On 15 Feb 2006, at 03:31, August Trometer wrote:

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

  • Prev by Date: Re: warning: C++ constructors and destructors
  • Next by Date: [NSTableView selectedRow] is always 0?
  • Previous by thread: Re: plain white boxes/views
  • Next by thread: Re: CoreImage: Newbie can't find memory leak [SOLVED
  • Index(es):
    • Date
    • Thread