Mailing Lists: Apple Mailing Lists

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

Re: resource question



on 5/30/2003 11:34 AM, Bob Sabiston at email@hidden wrote:

> Hello,
> I am trying to retrieve a resource from a preferences file, after
> setting UseResFile(). UseResFile returns with no error, and my
> resource is retrieved just fine. The problem is, that resource isn't
> *actually in* the preferences file. It must be getting it from
> somewhere else, right? The default resource file is that of the
> application itself, isn't it? Or does it look at the resource file in
> the resources folder of my freaky new bundled app which is really a
> folder? Or does system 9 check the preference file in the system
> folder? I have my Mac set to a single user, this is in OS9. I have
> looked at all of these resource files with ResEdit, and the resource is
> not actually in any of them.
> So where else could the resource manager be finding this resource?

UseResFile simply specifies which resource file is the "top" resource file.

If you only want the resource from the *current* resource file, use the
"Get1" resource calls, which are supposed to only look in the current
resource file, not the entire resource chain.

--
Glenn L. Austin <><
Computer Wizard and Race Car Driver
<email@hidden>
<http://www.austin-home.com/glenn/>
_______________________________________________
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.

References: 
 >resource question (From: Bob Sabiston <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.