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

Re: Transparent divider


  • Subject: Re: Transparent divider
  • From: Benjamin Stiglitz <email@hidden>
  • Date: Fri, 2 Nov 2007 10:46:37 -0700

I see a black vertical line even with isOpaque is NO.
Is a way to draw it as transparent?

- (void)drawDividerInRect:(NSRect)aRect
{
   [[NSColor clearColor] set];
   NSRectFill(lineRect);
}

NSRectFill(x) is the same as NSRectFillUsingOperation(x, NSCompositeCopy), which won’t use the alpha data. You should be using the NSCompositeSourceOver compositing operation instead.


-Ben_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Transparent divider (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Switch Spaces Programmatically?
  • Next by Date: Re: IB Palettes no longer supported in Leopard - what to do?
  • Previous by thread: Transparent divider
  • Next by thread: Deallocating Core Data objects in a document-based app
  • Index(es):
    • Date
    • Thread