[futurebasic] Re: [FB] how to get type and creator?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2007 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Tue, 22 May 2007 11:08:56 -0700
A quick peek  at the runtime shows two globals ( gFBSaveType&  
gFBSaveCreator& ) are used to set the type/creator fields in the 128  
byte parameter block before the file write. For apps that run only in  
OS X, type/creator are not necessary. I would recommend reading the  
discussion at ADC Home > Reference Library > Guides > Mac OS X > File  
System Overview > within the Xcode documentation including the sub- 
section on type codes.

Brian S.



On May 22, 2007, at 9:38 AM, Jay Reeve wrote:

> Steve,
>
> You're probably correct, although I wouldn't know. I misunderstood  
> your question. When you asked for the "best" way, I thought you  
> were just looking for a way--but I also considered that FSpSetFInfo  
> is the corollary fn to the one RP sent you.
>
> I'm sure when RP wakes up, he'll educate both of us. :-)
>
>   e-e
>   =J= a  y
>    "
>
> On May 22, 2007, at 10:56 AM, Steve wrote:
>
>> Thanks Jay...  I thought that method was deprecated and there was a
>> modern replacement.
>>
>> ~ steve
>>
>> On May 22, 2007, at 9:08 AM, Jay Reeve wrote:
>>
>>
>>> Steve,
>>>
>>> The easiest is probably to use
>>>   DEF OPEN "FTypCr8r"
>>> before creating the file. (This also sets the file type.)
>>>
>>> To change the creator on an existing file, check out
>>>   FSpSetFInfo( Fspec, FndrInfo )
>>> and the fInfo record type.
>
> --
> To unsubscribe, send ANY message to: futurebasic- 
> unsubscribe@...
>