• 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: CW port to Xcode - generated .rsrc file not loaded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CW port to Xcode - generated .rsrc file not loaded


  • Subject: Re: CW port to Xcode - generated .rsrc file not loaded
  • From: "Edward K. Chew" <email@hidden>
  • Date: Fri, 9 May 2008 12:14:00 -0400

Just looking at my own code, I seem to be calling FSOpenResourceFile() to open the data fork of the main resource file before make any GetResource() calls. This was not necessary back in the days of CFM, since the resource fork was opened for you automatically. Was your original CW project CFM (i.e. single file, as opposed to bundle)?

-Ted

On 9-May-08, at 10:14 AM, Ron Duritsch wrote:

I'm porting a project from CodeWarrior to Xcode 2.5 (later 3.0). I used the Importer feature in Xcode to port the project. I've gotten it to compile, and with the help of Chris Espinoza on this list, I've gotten it to link.

When I go to run it, however, it goes to load the first resource it needs (the MBAR, id - 129), and GetResource() returns a Null. I looked at the resource file that Xcode created from all the .ppob and .rsrc files in my project, and has placed in the app's bundle (app_name.rsrc) and all of the resources appear to be there.

Is there something else I need to do in Xcode for it to recognize and use/load this file?

Thanks, Ron

_______________________________________________ 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: 
 >CW port to Xcode - generated .rsrc file not loaded (From: Ron Duritsch <email@hidden>)

  • Prev by Date: Re: Run Script Build Phase and Copy Files Build Phase
  • Next by Date: Checking for an added sectcreate
  • Previous by thread: CW port to Xcode - generated .rsrc file not loaded
  • Next by thread: Checking for an added sectcreate
  • Index(es):
    • Date
    • Thread