• 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: Keeping grayscale image grayscale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping grayscale image grayscale


  • Subject: Re: Keeping grayscale image grayscale
  • From: Jonathan Taylor <email@hidden>
  • Date: Tue, 18 Oct 2011 14:26:26 +0100

Belated thanks for the various replies to my question. I'm working through the posted code and links now and looking at what I can learn from it. One query though:

On 12 Oct 2011, at 16:42, Heinrich Giesen wrote:
> Another rule of thumb is: if you need -[NSImage TIFFRepresentation] you do something wrong.
> (There are of course counterexamples).

I've heard this said before, and have mostly eliminated it from my code. However the cocoadev page on NSBitmapImageRep does specifically say "A correct use of TIFFRepresentation is one that sends the resulting data outside of the process. For example, write to disk, write to pasteboard, write to network". So is there a particular reason why there is a problem with my line:
[[destImage TIFFRepresentation] writeToFile:destFile atomically:NO];

Thanks
Jonny_______________________________________________

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

  • Follow-Ups:
    • Re: Keeping grayscale image grayscale
      • From: Ken Ferry <email@hidden>
References: 
 >Re: Keeping grayscale image grayscale (From: Heinrich Giesen <email@hidden>)

  • Prev by Date: Re: 'Static' items in an NSOutlineView
  • Next by Date: Re: How to get from the Itunes App Store application information
  • Previous by thread: Re: Keeping grayscale image grayscale
  • Next by thread: Re: Keeping grayscale image grayscale
  • Index(es):
    • Date
    • Thread