Re: NSTextView and SimpleText files?
Re: NSTextView and SimpleText files?
- Subject: Re: NSTextView and SimpleText files?
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 3 Jun 2003 00:08:15 -0700
On Monday, June 2, 2003, at 08:16 PM, M. Uli Kusterer wrote:
does anyone have code that loads a SimpleText file (raw text in the
data fork, style information in a 'styl' resource in the resource
fork) into an NSTextView? Or even better, do NSTextView or NSText have
methods to do that?
NSAttributedString can load SimpleText files. Take a look at
<
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSAttributedString.html> for more
information. Then you can take the resulting attributed string and
insert it into the NSTextView...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Great spirits have always encountered violent opposition from mediocre
minds." - Albert Einstein
_______________________________________________
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.