• 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: Resource forks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resource forks


  • Subject: Re: Resource forks
  • From: Michael Casteel <email@hidden>
  • Date: Mon, 19 Sep 2005 16:07:42 -0700

On 9/19/05, Mark Wagner said:

>I'm porting a fairly ancient application from CodeWarrior/CFM to
>XCode/Mach-O.  The CFM version of the app expects resources to be
>available using Get1Resource().  Does this work with a bundled Mach-O
>application, and if so, how do I get XCode to put the resources in the
>right place?

I found useful info under 'Bundles and the Resource Manager' in XCode
Documentation.

My app has two files in the 'Build ResourceManager Resources' build
phase in my target: a .r file and a .rsrc file, with the same name as my
app. This gets the resource file built and installed in the app bundle:
the .r gets compiled and merged with the .rsrc file.

I converted that .rsrc file to data-fork using Resorcerer's 'Save As'
command, maybe it was necessary for the resmerge to work right, can't
recall.

All my old code now just works. Except where I accidentally tried to
modify a resource in memory: file mapping is in use and the resources
are in read-only pages! I didn't want to be modifying that resource, it
was a bug, so it's fine that it got caught after all these years.
--
Mike Casteel
email@hidden                   Seattle, WA
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Resource forks (From: Mark Wagner <email@hidden>)

  • Prev by Date: [ANN] Automate logical version string setting
  • Next by Date: Re: xcode and fortran
  • Previous by thread: Resource forks
  • Next by thread: [ANN] Automate logical version string setting
  • Index(es):
    • Date
    • Thread