• 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
Loading include files from a bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading include files from a bundle


  • Subject: Loading include files from a bundle
  • From: Erick van Rijk <email@hidden>
  • Date: Thu, 06 Feb 2003 16:13:07 +0100

The app I'm working on needs to know where I have put my separate include files. My first thought was to put them in a folder "include" inside the main bundle and look for them using this routine

includePath = [[NSBundle mainBundle] pathForResource:@"include" ofType:@"bundle"];

But when I do NSLog( @"includePath is %@",includePath );
it returns returns includePath is (null). So I conclude it can't find my include directory.

So here are my questions:

Is an folder copied using the Build Phases Copy Files routine really a bundle?
I tried copying the include files as resource in a subdirectory /include ( so in the .app it will be placed at /Resources/include/file.h)

if this doesn't create a bundle, how do you create a bundle I haven't been able to find that out using the cocoa documentation.

Thanks

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

  • Follow-Ups:
    • Re: Loading include files from a bundle
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: NSWorkspaceDidTerminateApplicationNotification and background app
  • Next by Date: Re: Loading include files from a bundle
  • Previous by thread: Re: Internet Config Example under Cocoa
  • Next by thread: Re: Loading include files from a bundle
  • Index(es):
    • Date
    • Thread