• 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: Jens Bauer <email@hidden>
  • Date: Sat, 6 Dec 2003 00:58:36 +0100

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.

  • Follow-Ups:
    • Re: NSBox Colour
      • From: Oliver Cameron <email@hidden>
References: 
 >NSBox Colour (From: Oliver Cameron <email@hidden>)

  • Prev by Date: drawing performance
  • Next by Date: Re: Coalescing Messages From Continuous Controls
  • Previous by thread: NSBox Colour
  • Next by thread: Re: NSBox Colour
  • Index(es):
    • Date
    • Thread