[futurebasic] Re: [FB] Saving resources in a data file

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2006 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Wed, 26 Jul 2006 21:49:05 -0700
On Jul 26, 2006, at 6:07 AM, Joe Lertola wrote:

> Hi all,
>
> I want to change my program so it no longer uses resources.

Not sure I understand the goal. Are you looking for an alternative  
way to store PICTs for use in the program?  I"m assuming you want to  
do more than simply remove the resource calls in your program (which  
would achieve your stated goal above).



> Below are the resource access commands that I must replace.
Hmmm....."must replace"?  Sharing the compelling reason might help  
with  more directed assistance.  Resources are available in an OS X  
bundled application, so there is no compelling reason to replace them  
from that perspective. Are you planning to use Quartz (aka Core  
Graphics) instead?

>
> Are there any equivalent commands for saving data into the datafork  
> of a file?

For saving data, yes. Saving resources is another matter. Have you  
read the "Carbon Porting Guide" from Apple? http:// 
developer.apple.com/documentation/Carbon/Conceptual/ 
carbon_porting_guide/index.html#//apple_ref/doc/uid/TP30000991


It specifically mentions  moving resources to Data Fork-based files  
using the Corefoundation (CF) CFBundle APIs.  This is just an  
overview but  I'm not sure if this is what you want.  FB-created apps  
are currently CFM-based and not Mach-O, so there are some limits  
regarding use of resources. If the goal is to create a bundled OS X  
app, there is no need to dump your resources  or convert them. Maybe  
a little elaboration from you would help.

Brian S.