• 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: Graham Cox <email@hidden>
  • Date: Sun, 19 Jun 2011 17:18:15 +1000

On 19/06/2011, at 3:18 AM, Robert Hard wrote:

>  I have RFT TextEdit files of each panel.


Just use the files as resources. They can simply be added to the project and will be copied into your app's bundle. At runtime, load the one you want into a NSTextView. One line of code, pretty much. I wouldn't bother doing anything with the original RedEdit resources, just use the RTF files as is.

The original Mac resource manager was basically a sort of filesystem (or database) within a filesystem. Since the very original Mac didn't have real directories, it was necessary to provide a way to load things from disk that couldn't be individual files inside a (hidden) directory. That situation has thankfully long since been superseded. Resources these days are just files inside your bundle, which is in itself just a disguised directory.

--Graham


_______________________________________________

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

  • Follow-Ups:
    • Re: Porting ResEdit Text Resources to OS X
      • From: Uli Kusterer <email@hidden>
References: 
 >Porting ResEdit Text Resources to OS X (From: Robert Hard <email@hidden>)

  • Prev by Date: Re: Tab Bar iPad App With Table View(Conrad Shultz)
  • Next by Date: CATransactions having no effect in CALayer draw delegate
  • Previous by thread: Porting ResEdit Text Resources to OS X
  • Next by thread: Re: Porting ResEdit Text Resources to OS X
  • Index(es):
    • Date
    • Thread