Re: attributed strings and embedded images.
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.