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: Douglas Davidson <email@hidden>
- 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
_______________________________________________
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