• 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: TIFFs on pasteboard losing alpha when pasted into Carbon apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TIFFs on pasteboard losing alpha when pasted into Carbon apps


  • Subject: Re: TIFFs on pasteboard losing alpha when pasted into Carbon apps
  • From: publiclook <email@hidden>
  • Date: Tue, 15 Jul 2003 22:41:36 -0400

On Tuesday, July 15, 2003, at 10:07 PM, John Scalo wrote:

If I place a TIFF with alpha on the pasteboard like so:

---
NSData *tiffData;
NSImage *image = (some image...);

tiffData = [image TIFFRepresentation];
[[NSPasteboard generalPasteboard] declareTypes:[NSArray
arrayWithObjects:NSTIFFPboardType, nil] owner:nil];
[[NSPasteboard generalPasteboard] setData:tiffData
forType:NSTIFFPboardType];
---

...and paste into any Cocoa app, it looks fine. However pasting into a
Carbon app (like a fairly popular one called Photoshop), the alpha channel
is ignored or lost.

Is there some sort of Cocoa pasteboard to Carbon clipboard conversion that's
not happening properly? Anyone know of a workaround to this?



I don't believe that Photoshop implements tiff correctly and/or the tiff standard has so much flexibility that Cocoa and Photoshop implement tiff transparency incompatibly.

Try a different bitmap format like gif or png. Do saved tiffs from a Cocoa app load OK in Photoshop ?
_______________________________________________
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: TIFFs on pasteboard losing alpha when pasted into Carbon apps
      • From: "Alastair J.Houghton" <email@hidden>
References: 
 >TIFFs on pasteboard losing alpha when pasted into Carbon apps (From: John Scalo <email@hidden>)

  • Prev by Date: Undo and NSDocument problem.
  • Next by Date: Cocoa and PostScript
  • Previous by thread: TIFFs on pasteboard losing alpha when pasted into Carbon apps
  • Next by thread: Re: TIFFs on pasteboard losing alpha when pasted into Carbon apps
  • Index(es):
    • Date
    • Thread