• 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: email@hidden
  • Date: Tue, 16 Apr 2002 12:11:27 -0700

On Monday, April 15, 2002, at 04:23 PM, Douglas Davidson wrote:

First, you don't need to do a longestEffectiveRange:. Each text attachment should be represented by a single NSAttachmentCharacter (=0xfffc), with an attribute NSAttachmentAttributeName, whose value is an NSTextAttachment. The attachment has a file wrapper (see NSTextAttachment.h), which represents the file, or in this case its data (see NSFileWrapper.h). You can substitute a different file wrapper if you like.

What you are seeing here is the attachment's description, which prints the file wrapper's preferredFilename.

D'oh! Sadly, that's not the first time I've been fooled by NSLog(@"%@", anObject)...

Thanks for the tip, I am converting my attachments to jpeg now and things are much better.
_______________________________________________
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.
References: 
 >Re: attributed strings and embedded images. (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: NSHost cache; NSAutoreleasePool and rss
  • Next by Date: NSSpellChecker hidden service?
  • Previous by thread: Re: attributed strings and embedded images.
  • Next by thread: Possible stupid question
  • Index(es):
    • Date
    • Thread