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

Re: Transparency?


  • Subject: Re: Transparency?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 27 Apr 2004 23:41:54 +0200

At 10:19 Uhr -0400 21.04.2004, Huyler, Christopher M wrote:
- (void) drawRect:(NSRect) frame
{
NSRect rect=[self frame];
[super drawRect:frame];
rect.origin=NSMakePoint(1,1);
rect.size.width-=2;
rect.size.height-=2;

[[NSColor colorWithCalibratedWhite:1.0 alpha:0.9] set ];
NSRectFill(rect);
}

IIRC NSRectFill() "assigns" the current color to the pixels of a rect, replacing anything behind them. What you want to do instead is:

[[NSBezierPath bezierPathWithRect: rect] fill];

(Warning, 11:41pm reply, nonsense level potentially increasing by the minute)
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: Transparency?
      • From: John Randolph <email@hidden>
References: 
 >Transparency? (From: "Huyler, Christopher M" <email@hidden>)

  • Prev by Date: Re: Solved [Q] Why unsolicited dealloc in NSKeyedUnarchiver?
  • Next by Date: Re: release not done right away
  • Previous by thread: Re: Transparency?
  • Next by thread: Re: Transparency?
  • Index(es):
    • Date
    • Thread