• 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: Chris Espinosa <email@hidden>
  • Date: Sat, 24 Apr 2004 22:25:16 -0700

On Apr 24, 2004, at 12:44 AM, Nicolas Zinovieff wrote:

As far as I know, ProjectBuilder or Xcode can only create bundled applications that get rid of the need of resource fork. rsrc files have their data in the data fork (however, the resource manager can manage the two types of resource files, old version with data in resource fork and the new one with data in data fork).

Just take a look at "legacy" target in Xcode, or the target settings in PB. You can set the resource fork to be separated (in a .rsrc file) or in the executable.

Yes, "legacy" targets default to resource fork, and you have to add the -useDF flag to use the data fork. Native targets default to -useDF and there is no override to return it to the resource fork.


If I quite understand you, you want to add a resource fork to the executable (hence the file in the MacOS folder of the application bundle) but what's your goal ?

Just for the sake of descending AND ascending compatibility.

I don't quite understand what you want to be compatible with. Mach-O binaries shouldn't have resource forks, and Xcode can't create CFM binaries, so I don't understand the need for Xcode to create binaries with resource-fork data.


If you want to move resource data to the resource fork of a file, you can always add a shell script build phase that copies the data fork resource file into the resource fork of any file by using the named fork notation, e.g. cp foo.rsrc bar.rsrc/..namedfork/rsrc

Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Resource forks
      • From: Nicolas Zinovieff <email@hidden>
References: 
 >Re: Resource forks (From: Marc Pergand <email@hidden>)
 >Re: Resource forks (From: Nicolas Zinovieff <email@hidden>)

  • Prev by Date: Re: Is it me or XCode 1.2?
  • Next by Date: Re: Is it me or XCode 1.2?
  • Previous by thread: Re: Resource forks
  • Next by thread: Re: Resource forks
  • Index(es):
    • Date
    • Thread