[futurebasic] Re: [FB] Empty array resource

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2002 : Group Archive : Group : All Groups

From: Heather Donahue <maclists@...>
Date: Thu, 07 Nov 2002 00:05:51 -0800
On 11/6/02 11:55 PM, "Alain Pastor" <apastor@...> wrote:

> Dynamic arrays are not stored like regular arrays.
> You must retrieve the handle pointing to the data.
> 
> theHandle = [@gArray&]
> 
> Then you can add the data in your resource file.
> I think it is a bit more complex than that, because there is a header
> maintaining some information regarding the array.
> 
> Jay and I have worked together on such an example, but darn if I can
> put my hands on it at the moment. I continue searching and I'll repost.

The code I posted only needed a few changes to work but I question the use
of a resource to hold that much data.  It might be within the limits for the
Resource Manager but it's close.  I ran that code and ended up with a DATA
resource over 14 MB.

I'd suggest saving to a data file using the Read & Write Dynamic functions.
Since this is a Mac OS X only application, you also might make it a
self-contained bundled app to encapsulate the data file.