• 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
Problem opening file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem opening file


  • Subject: Problem opening file
  • From: Carlos Eduardo Mello <email@hidden>
  • Date: Tue, 22 Feb 2011 12:47:55 -0300

Hi there,

I have a configuration file which is used by an internal library in my app's data model engine. The engine was written in c++ and needs this file for loading the app's documents correctly. Theis file never changes and shouldn't have to be seen or open by the user. Its contents are the same for any document files oppened by the user.

During debugging I place the file next to the executable in Build- >Debug and the library opens it with using c++ streams with just the file name. However, when I compilethe app as release, and place the configuration file next to the executable, it fails to find the file. I imagine I have to deal with application bundle api, but the thing is I can't add any cocoa code to this library, as it needs remain cross- platform. Also I can't follow the problem when I use the release version since the debugging symbols are not there. NSLog helped me track the problem, but iI can't figure out how to fix it.

 My questions are:

- Other than debugging symbols, are there anyother differences between a debug and release build?
- Why can I open the file when running the app from Xcode and not otherwise?
- How can I make my app "see" the file?


Any comments would be much appreciated.

Carlos.
_______________________________________________

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: Problem opening file
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Accessing a managedObject property from within an accessor of another property
  • Next by Date: Re: Problem opening file
  • Previous by thread: Re: Accessing a managedObject property from within an accessor of another property
  • Next by thread: Re: Problem opening file
  • Index(es):
    • Date
    • Thread