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: Thu, 15 Sep 2005 08:36:01 +0000
Scott,
I can only agree with your comments about PDF, but that is not the point of
offering an NSTextView class to the development community. Emphasis on
TEXT. That is why they should have created a NSPdfView for viewing pdf and
jpg files. There should be some kind of flag to turn that behavior off, and
I intend to request it.
So, now we're getting somewhere.... I have to go as far as subclassing
NSTextAttachmentCell to change this behavior?
Malcolm >> Apologies for the rant. Will keep it to a minimum going forward.
Does anybody have an example of this... I cannot be the only person that
has an issue with this. Just point me somewhere that even hints at a
solution. Sample code would be great.
-------------------------
Kirt S. Cathey
http://www.bizolutions.com
-------------------------
From: Scott Anguish <email@hidden>
To: Kirt Cathey <email@hidden>
CC: email@hidden, email@hidden
Subject: Re: Disabling Display of JPG and PDF Files in NSTextView
Date: Thu, 15 Sep 2005 02:12:06 -0400
On Sep 14, 2005, at 11:53 PM, Kirt Cathey wrote:
Just one more rant.... it is rediculous to have to go through so
much to disable such a feature. Where does one go to submit a Cocoa
feature request to have this disabled? Most implementors of
NSTextView will NOT want a pdf to display in a text view.
Admittedly, some may.... those who are writing PDF Viewers (like we
need a dozen or so more of those) or parsing PDF files, but the
vast, vast majority of programmers do not want this. At the very
minimum, there should be a flag within NSTextView that programmers
flip with YES or NO to turn this feature off.
I think I'd disagree with this assessment. PDF is an
excellent, portable means of representing line art in a scalable
fashion. TIFF and other bitmap formats simply don't work for this,
and rendering that art at hi-DPI to make it "scale" isn't a great
alternative. While many people may thing multi-page files for PDF,
they're equally valid for images and figures in place of, say, EPS.
Images are displayed inline, and that's the common requirement.
If you need it to behave otherwise, that's a special case, and can
be handled by overriding NSTextView and handling those drag and
drop events yourself, subclassing the attachment cell class if
necessary.
_________________________________________________________________
無料でメールボックス250MBの 「MSN Hotmail」 http://messenger.msn.co.jp/
_______________________________________________
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