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

TIFFs on pasteboard losing alpha when pasted into Carbon apps


  • Subject: TIFFs on pasteboard losing alpha when pasted into Carbon apps
  • From: John Scalo <email@hidden>
  • Date: Tue, 15 Jul 2003 19:07:15 -0700

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?

Thanks
John
_______________________________________________
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: publiclook <email@hidden>
  • Prev by Date: Re: Debugging retainCount
  • Next by Date: Re: Debugging retainCount
  • Previous by thread: Re: Lighthouse Applications as Free Software -- Progress with Sun
  • Next by thread: Re: TIFFs on pasteboard losing alpha when pasted into Carbon apps
  • Index(es):
    • Date
    • Thread