Re: Porting ResEdit Text Resources to OS X
Re: Porting ResEdit Text Resources to OS X
- Subject: Re: Porting ResEdit Text Resources to OS X
- From: Uli Kusterer <email@hidden>
- Date: Mon, 20 Jun 2011 08:58:04 +0200
On 19.06.2011, at 09:18, Graham Cox wrote:
> Just use the files as resources.
Just to avoid any potential for confusion: What Graham means here are lower-case resources, i.e. files in a "Resources" folder in your application. The original stuff you probably have are upper-case Resources, i.e. little blobs of data in the resource fork of a file, or in the data fork of a special .rsrc file of your application's bundle, depending on how old your code really is.
But yeah, the "Cocoa way" of doing this is to simply use NSAttributedString, which takes RTF files natively, and then stash that in an NSTextView for display.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.lookandfeelcast.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden