Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading default files on startup, finding path?



I'm porting a classic app to Mach-O. I used to load some default data files
on startup, that would be located in the same folder as the application. (I
don't want to put these in the bundle/package, BTW).

It used to be that I would just call FSMakeFSSpec(0, 0, fileName, &fsSpec),
with the name of the file, and it would automatically find it in the same
folder as the app. This no longer seems to work.

Questions:
- can this still work in OS X, or am I supposed to be using CF methods for
all of this?
- can someone provide an example of how to do this, or a pointer to some
example code that shows this? I'm lost on which of the gazillion CF calls to
use to construct this.

Thanks,
- Stephen

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma Lab - developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.