Mailing Lists: Apple Mailing Lists

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

Problem with locating bundle folder on Jaguar



Hi,

This code, which is supposed to locate the application's "Plugins" folder, works fine on Panther, but fails on Jaguar with my application:

CFBundle bundle = ::CFGetMainBundle();
if (bundle != NULL) {
CFURL url = ::CFBundleCopyBuiltinPluginsURL( bundle );
if (url != NULL) {
if (::CFURLGetFSRef(url, &fsRef)) {

On Jaguar, url is not NULL, but converting it to a string gives "Contents/Plugins" - I assume meaning a relative URL. The call to CFURLGetFSRef succeeds, but any attempt to use the resulting FSRef gives error -35 (no such volume). If I remove my Plugins folder, then I get a NULL URL as expected. Any ideas anyone?

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



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.