• 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: -[NSImage setBackgroundColor:] not working in 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSImage setBackgroundColor:] not working in 10.6


  • Subject: Re: -[NSImage setBackgroundColor:] not working in 10.6
  • From: Ken Ferry <email@hidden>
  • Date: Thu, 7 Oct 2010 08:55:33 -0700

On Oct 7, 2010, at 5:16 AM, Hamish Sanderson <email@hidden> wrote:

>
> On 7 Oct 2010, at 11:14, Ken Ferry wrote:
>
>> The problem here is the use of NSCompositeCopy.  Try NSCompositeSourceOver.
>
> Already tried this. On 10.5.8, the transparent parts of the PDF appear white (the NSImage's assigned background color) as expected. On 10.6.4, the transparent parts of the PDF show whatever's behind the NSImage - i.e. the NSImage's background color is being ignored.
>
> I'm assuming this is a regression bug in 10.6, but want to check I've not overlooked anything before submitting a Radar report.

Well, you can submit it if you like, but the difference is a bug fix. That the background color ended up doing something in a specific path here was a bug and PDF specific.  The 10.6 image rewrite removed inconsistencies like this. You're thinking that the background color is always filled before the image data is drawn, but this wasn't the case before 10.6 either.

I would suggest filling the color before you draw the image and using NSCompositeSourceOver.

-Ken
Cocoa Frameworks

>
> Thanks,
>
> Hamish
>
> --
>
> Hamish Sanderson
> Production Workflow Developer
> Sun Branding Solutions Ltd
> Tel: +44(0)1274 200 700
> www.sunbrandingsolutions.com
>
>
>
>
>
_______________________________________________

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: 
 >-[NSColor setBackgroundColor:] not working in 10.6 (From: Hamish Sanderson <email@hidden>)
 >Re: -[NSColor setBackgroundColor:] not working in 10.6 (From: Ken Ferry <email@hidden>)
 >Re: -[NSImage setBackgroundColor:] not working in 10.6 (From: Hamish Sanderson <email@hidden>)

  • Prev by Date: Re: Let the runloop process its queue during a long operation
  • Next by Date: Re: init returns nil or raises exception?
  • Previous by thread: Re: -[NSImage setBackgroundColor:] not working in 10.6
  • Next by thread: Re: -[NSColor setBackgroundColor:] not working in 10.6
  • Index(es):
    • Date
    • Thread