Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
OSX Lion: CFBundleCopyResourceURL problem
duncanparsons
KVRAF
- profile
- pm
- e-mail
- www
PostPosted: Thu Apr 12, 2012 6:15 am reply with quote
I'm having an issue with something.

I need to be able to locate a .vst bundle which will be in the standard Library/Audio/Plug-Ins/VST/ directory. Using CFBundleCopyResourceURL with a NULL final parameter isn't finding it.

CFURLRef theVSTURL = CFBundleCopyResourceURL(aValidRef, CFSTR(SOME_VST_BUNDLE), CFSTR("vst"), NULL);

I'm using 10.7, and this API was working on 10.6. Has something changed?

I'm not as familiar as I would like to be with OSX, being a more Win-centric dev. I'm hoping there's some sort of PATH environmental variable. From digging around I find conflicting information about ~/.bash_profile, preferences.plist and a variety of others (including stuff for launchd) - some claim they don't work for GUI applications; there are a couple of posts on stack overflow which suggest that there is no unified PATH in 10.7.

Does anyone do anything similar? As part of installation routines are any of you writing to some PATH env-var?
I'm not keen to go changing every file I find just in case one of them works, I need to have something that is replicable for support purposes, so I'm looking to you chaps first Smile

DSP
----
^ Joined: 11 Apr 2003  Member: #6706  Location: now on the flat
plastique
KVRAF
- profile
- pm
- www
PostPosted: Thu Apr 12, 2012 8:17 am reply with quote
Under Lion the access rights became much stricter so the first thing I would check out here is if you even got the read permissions for that particular file/folder.
----
m i d i - v s t (free)
^ Joined: 07 Sep 2003  Member: #8880  Location: germany
duncanparsons
KVRAF
- profile
- pm
- e-mail
- www
PostPosted: Thu Apr 12, 2012 8:23 am reply with quote
yeah, fair call. I had checked and updated as part of the build process had failed in copying the .vst there, so it does have read & write permissions Smile
----
^ Joined: 11 Apr 2003  Member: #6706  Location: now on the flat
duncanparsons
KVRAF
- profile
- pm
- e-mail
- www
PostPosted: Fri Apr 13, 2012 3:14 am reply with quote
ufff...

solved it.. I must have misunderstood the API. I put the .vst in the Contents/Resources/ of the bundle and all was well..

thx those who looked Smile
----
^ Joined: 11 Apr 2003  Member: #6706  Location: now on the flat
All times are GMT - 8 Hours

Printable version
Page 1 of 1
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012