[futurebasic] Re: [FB] Resource attributes

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

From: Chris Stasny <staz@...>
Date: Thu, 19 Jul 2001 08:41:03 -0500
>on 18 Jul 2001 09:00:51 Chris wrote
>
>  > some general rules
>  >
>  > 1) Resources are purgeable
>  > 2) Resources are left in the application heap
>  > 3) resources are not locked or protected
>  > 4) Resources are preloaded only in cases where you will need
>  >    them to be handled quickly at startup (such as a series of
>  >    picts for a splash screen)
>
><snip>
>
>Thank you, Chris.  This will help me work with resources a little more
>intuitively.  My current mission is to get a better understanding of the
>Resource Manager.  I have been living with my nose in the Inside Macintosh
>book for awhile now and with it, yours and others examples, I'm getting
>there.  One observation that might make you smile, I have discovered that
>you cannot delete a resource using RemoveResource if its _resProtected bit
>(bit 3) is set.


True. You also cannot call changedresource when this bit is set.

>  I experimented and have hammered out a few statements to
>work with the pGkillRes to check the bit and clear it before a call to
>RemoveResource is made.  What a feeling I had when that piece worked.... and
>still a long way to go.


Let 'er rip, Bubba. :)



Best,

-STAZ  ~)~

800.348.2623 Orders  http://www.stazsoftware.com
228.255.7086 FAX     mailto:staz@...