• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Porting ResEdit Text Resources to OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Porting ResEdit Text Resources to OS X (From: Robert Hard <email@hidden>)
 >Re: Porting ResEdit Text Resources to OS X (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: How to redraw a view in slow-motion
  • Next by Date: Re: How to redraw a view in slow-motion
  • Previous by thread: Re: Porting ResEdit Text Resources to OS X
  • Next by thread: Setting the firstResponder in a view
  • Index(es):
    • Date
    • Thread