• 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 to JPEG file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage to JPEG file?


  • Subject: Re: NSImage to JPEG file?
  • From: Carl Hoefs <email@hidden>
  • Date: Wed, 16 Jan 2019 10:59:47 -0700

> On Jan 16, 2019, at 10:43 AM, Jens Alfke <email@hidden> wrote:
>
>> On Jan 16, 2019, at 8:32 AM, Carl Hoefs <email@hidden
>> <mailto:email@hidden>> wrote:
>>
>> It was the NSData tie-in I didn't know. (I was expecting NSImage to have
>> innate export capabilities
>
> That would be poor API design. If it had -writeToFile, then it would also
> need -writeToStream:, -writeToFileHandle:, -writeToFileDescriptor:,
> -writeToNSURLSessionDataDelegate:, etc.
> Providing the data itself means you can then use existing APIs on other
> classes to put the data anywhere you want.

But all of that would come "for free" if NSImage inherited from NSData, no?

-Carl


_______________________________________________

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: NSImage to JPEG file?
      • From: Jens Alfke <email@hidden>
References: 
 >Re: Cocoa-dev Digest, Vol 16, Issue 1 (From: Bruce Stephens <email@hidden>)
 >Re: NSImage to JPEG file? (From: Jens Alfke <email@hidden>)
 >Re: NSImage to JPEG file? (From: Carl Hoefs <email@hidden>)
 >Re: NSImage to JPEG file? (From: Carl Hoefs <email@hidden>)
 >Re: NSImage to JPEG file? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSImage to JPEG file?
  • Next by Date: NSImage to JPEG file?
  • Previous by thread: Re: NSImage to JPEG file?
  • Next by thread: Re: NSImage to JPEG file?
  • Index(es):
    • Date
    • Thread