Re: Fake Buttons <clear NSView>
Re: Fake Buttons <clear NSView>
- Subject: Re: Fake Buttons <clear NSView>
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 2 Jun 2003 15:15:27 -0700
On Monday, June 2, 2003, at 01:47 PM, email@hidden wrote:
You are right. This works:
[NSBezierPath fillRect: [NSColor clearColor]];
Umm, this won't work. -fillRect: expects an NSRect struct, not an
NSColor object.
to fill a rectangle with a given color taking alpha into account, try
something like:
NSRect myRect = NSMakeRect(0,0,100,100);
NSRectFillUsingOperation(myRect, NSCompositeCopy);
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.