On Sep 18, 2010, at 9:40 AM, "Mr. Gecko" <grmrge...@gmail.com> wrote:

> I was right about these lists not being useful anymore. None has done a 
> custom Tab View border? Really?

Do you plan on acknowledging Seth Willits's reply?

--Kyle Sluder

> 
> On Sep 17, 2010, at 5:29 PM, Mr. Gecko wrote:
> 
>> Hello I'm wondering what will be the best way to draw a custom NSTabView 
>> Border. I have tried many things and it always ends up that I fail. The 
>> border gets drawn, but the objects in the Tab View, if you focus them, has a 
>> black edge around them, that is not elegant at all. Is there any examples on 
>> the internet that I could look at? This is my code below.
>> 
>> - (void)awakeFromNib {
>>   [self setTabViewType:NSNoTabsNoBorder];
>>   [self setDrawsBackground:NO];
>> }
>> 
>> - (void)drawRect:(NSRect)frameRect {
>>   float lineSize = 2.0;
>>   float transparentcy = 0.87;
>>   NSBezierPath *strokePath = [NSBezierPath bezierPathWithRect:frameRect];
>>   [strokePath setLineWidth:lineSize];
>>   NSBezierPath *path = [NSBezierPath bezierPathWithRect:frameRect];
>> 
>>   [[NSColor colorWithCalibratedWhite:1.0 alpha:transparentcy] set];
>>   [path fill];
>>   [[NSColor colorWithCalibratedWhite:transparentcy-0.3 alpha:1.0] set];
>>   [strokePath stroke];
>>   [super drawRect:frameRect];
>> }
>> 
>> Thanks for any help,
>> Mr. Gecko
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/kyle.sluder%40gmail.com
> 
> This email sent to kyle.slu...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to