Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

bundle's resources no longer found

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  Java on MacOS dead ?  
Author Message
Howard1

External


Since: Sep 26, 2003
Posts: 53



(Msg. 1) Posted: Tue May 30, 2006 5:26 pm
Post subject: bundle's resources no longer found
Archived from groups: comp>sys>mac>programmer>misc (more info?)

HI all,

I've recently updated a component (an audio plug-in) to compile under
XCode on the new IntelMac machine. The resulting bundle looks just like the
version I have on my PPC Mac (as far as bundle structure and names are
concerned, at least). But when the plug-in runs, it fails to find its
resources.

The call Get1Resource('DLOG',1) returns a NULL handle. I'm not sure why
this would happen. I've got a .rsrc file in the Resources sub-folder, which
has the same name as the executable (with the ".rsrc" added, naturally),
just like on my PPC-Mac. So why wouldn't this version see the resources?

I _suppose_ that the host may be behaving differently, so that I need to
open the resource file myself? If that's the case, anyone know how I can
test that, and open my own app's resource file? I'm not familiar with the
steps a bundle app needs to take to open its own resource file from the
Resources folder. (Probably using FSOpenResFile, but how would I build the
FSRef? I can't hardcode a path, because the user could move the bundle
anywhere, theoretically.)

Thanks for any clues...

-Howard

 >> Stay informed about: bundle's resources no longer found 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]