Re: NSTextView (was: Slightly OT: what about the Services?)
Re: NSTextView (was: Slightly OT: what about the Services?)
- Subject: Re: NSTextView (was: Slightly OT: what about the Services?)
- From: Andreas Monitzer <email@hidden>
- Date: Sun, 7 Oct 2001 14:42:19 +0200
On Sunday, October 7, 2001, at 02:23 , Ondra Cada wrote:
just an excerpt from my private mail to Andreas, so as any potential
newbie
who reads this is not confused:
Andreas Monitzer (AM) wrote at Sun, 7 Oct 2001 14:03:54 +0200:
AM> TextEdit, the Classic API for text handling apparently does not
support
AM> services (at least SimpleText, which is a simple wrapper for TextEdit,
AM> does not).
TextEdit is not an API, but a Cocoa application;
They both share the same name:
http://developer.apple.com/techpubs/macosx/Carbon/text/TextEdit/textedit.html
Trust me, I am experienced enough to be able to distinguish between
applications and APIs!
(and it would have taken you about 10 sec to check that for yourself)
AM> Real text editors like Word don't use that API, they draw the
AM> text themselves (which is not a simple task).
Pity they waste their time so, whilst they could reuse library code and
invest the saved time and effort to some sensible things (like supporting
Services). The NSTextView API is *very* powerful and more than able to
support any "real text editor" needs (actually, although I never tried
that,
it looks as good enough even for a full-featured DTP).
Well, it's a Carbon app. Carbon apps can't use NSTextView. And I don't
think it'd be possible to add the functionality needed for MS Word (you
can check it out, it's a free download currently).
andy
--
Discussion forthcoming.