• 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: NSBox Colour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBox Colour


  • Subject: Re: NSBox Colour
  • From: Oliver Cameron <email@hidden>
  • Date: Sat, 6 Dec 2003 09:24:25 +0000

Hi Jens,

Thanks a lot for that code, it does exactly what I want. Now I need to figure out the RGB value :-)

Thanks,
Oliver
On 5 Dec 2003, at 23:58, Jens Bauer wrote:

Hi Oliver,

Here's a subclass I wrote for something like that, it's probably not exactly what you want, but... modify it to your needs. You may need to draw the title and frame yourself...

/* GroupView.h */

#include "Debugging.h"

#import <Cocoa/Cocoa.h>

@interface GroupView : NSBox
{
}
@end

/* GroupView.m */

#import "GroupView.h"

@implementation GroupView

- (void)drawRect:(NSRect)rect
{
[[NSColor colorWithCalibratedRed:1.0 green:0.0 blue:0.0 alpha:0.1] set];
NSRectFillUsingOperation(rect, NSCompositeSourceOver);
}

@end


On Saturday, Dec 6, 2003, at 00:38 Europe/Copenhagen, Oliver Cameron wrote:

I would like to change the colour of the default line NSBox, is this possible without creating a complete replica myself?


Love,
Jens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSBox Colour (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: best way to save document level settings?
  • Next by Date: Re: drawing performance
  • Previous by thread: Re: NSBox Colour
  • Next by thread: Re: NSBox Colour
  • Index(es):
    • Date
    • Thread