Re: Disabling Display of JPG and PDF Files in NSTextView
Re: Disabling Display of JPG and PDF Files in NSTextView
- Subject: Re: Disabling Display of JPG and PDF Files in NSTextView
- From: "Kirt Cathey" <email@hidden>
- Date: Wed, 14 Sep 2005 22:17:44 +0000
I re-read your posting below and realize that I did not respond to how I
was storing the attachments. All attachments are store with:
[[attachmentTextView textStorage]appendAttributedString:[NSAttributedString
attributedStringWithAttachment:theAttachment]];
I have also tried by allocating and initializing a separate attributed
string then appending to text storage, but that gives the same empty
filewrapper when I click on the cell after closing and re-opening the
document?
Regards,
-------------------------
Kirt S. Cathey
http://www.bizolutions.com
-------------------------
From: Douglas Davidson <email@hidden>
To: Kirt Cathey <email@hidden>
CC: email@hidden
Subject: Re: Disabling Display of JPG and PDF Files in NSTextView
Date: Wed, 14 Sep 2005 08:51:03 -0700
On Sep 13, 2005, at 2:24 PM, Kirt Cathey wrote:
NSTextView automatically displays JPG and PDF as images, instead of
icons, and while many people would be thrilled with this feature,
I don't want it. A posting from a while back fostered in getting
the code this far (this is raw without any checks or releases):
You should be able to do this by just letting NSTextView handle
attachments normally, but going through and locating any that you
don't want displayed as images, creating a new cell for each of
those, and calling setAttachmentCell: on the attachment. You don't
say how you are storing your text, but the attachment cell should
have no effect on the way the text is stored; that's all controlled
by the attachment. Does storing and loading of attachments work if
you don't try to prevent image display? If so, see what the
difference is in the stored files.
Douglas Davidson
_________________________________________________________________
無料でメールボックス250MBの 「MSN Hotmail」
http://promotion.msn.co.jp/hotmail/fortune/input_un.asp
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden