• 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: attributed strings and embedded images.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: attributed strings and embedded images.


  • Subject: Re: attributed strings and embedded images.
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 15 Apr 2002 15:07:51 -0700

On Monday, April 15, 2002, at 02:24 PM, email@hidden wrote:

I am trying to manipulate an attributed string from an NSTextView.

When I drag/drop or cut/paste an image into it say from Internet Explorer... the pasteboard type is PICT... but when I send the attributed string as email, (using the Message framework), it ends up being an UNcompressed TIFF.

I was hoping someone had some advice for me as to how to maybe manipulate the attributed string to make the images into JPG's or something that a cross platform mail reader would understand and might take less space.

Is it endemic to NSAttributedString to use TIFF? or is it NSMailDelivery that's doing it?

Internet Explorer -> inline gif image -> drag pasteboard as PICT -> NSTextView/NSTextStorage/NSAttributedString -> NSMailDelivery -> Multi-part-mime message with TIFF attachments.

The text system currently converts incoming pasted images into attached TIFF data in most cases. This behavior may change; it is possible that in the future it will pay more attention to the type of data coming in. You can manipulate this programmatically by changing the NSFileWrapper associated to a given NSTextAttachment.

Douglas Davidson
_______________________________________________
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: attributed strings and embedded images.
      • From: email@hidden
References: 
 >attributed strings and embedded images. (From: email@hidden)

  • Prev by Date: Re: NSFileManager and aliases
  • Next by Date: Re: NSFileManager and aliases
  • Previous by thread: attributed strings and embedded images.
  • Next by thread: Re: attributed strings and embedded images.
  • Index(es):
    • Date
    • Thread