on 11/28/02 7:49 PM, St=E9phane Sudre at ssudre at intego .DO.T com wrote:
> On mercredi, nov 27, 2002, at 23:52 Europe/Paris, Ruslan Zasukhin wrote: >=20 >> Hi All, >>=20 >> Another strange thing for me. >>=20 >> FSCreateFileUnicode() do not have Creator and Type parameters >> Like we have in FSpCreate() >>=20 >> Why ? >=20 > It does offer it via the FSCatalogInfo parameter. >=20 >> Where and how Apple now offer us set up them ??? >=20 > You can set the FSCatalogInfo finderInfo values before calling > FSCreateFileUnicode.
Thank you St=E9phane for answer.
But as for me, Apple really going to make things harder with Creator/Type. And just only I have CC on list message where Lane say that Apple is going kill Creator/Type parameters.
I don't know if this is 100% true... :-(
> Some code I'm using to add them AFTER creating files: >=20 > int SetTypeAndCreator(FSRef * inFSRef, OSType inType, OSType inCreator) > { > FSCatalogInfo tCatalogInfo; > FileInfo tFileInfo; > OSErr err; >=20 > =20 > err=3DFSGetCatalogInfo(inFSRef,kFSCatInfoFinderInfo,&tCatalogInfo,NULL,NUL > L,NULL); >=20 > if (err!=3DnoErr) > { > memcpy(&tFileInfo,tCatalogInfo.finderInfo,16*sizeof(unsigned > char)); >=20 > tFileInfo.fileCreator=3DinCreator; > tFileInfo.fileType=3DinType; >=20 > memcpy(tCatalogInfo.finderInfo,&tFileInfo,16*sizeof(unsigned > char)); >=20 > =20 > err=3DFSSetCatalogInfo(inFSRef,kFSCatInfoFinderInfo,&tCatalogInfo); > } >=20 > return err; > } > _______________________________________________ > darwin-development mailing list | darwin-development@lists.apple.com > Help/Unsubscribe/Archives: > http://www.lists.apple.com/mailman/listinfo/darwin-development > Do not post admin requests to the list. They will be ignored.
--=20 Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan at paradigmasoft .DO.T com web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list send a letter to valentina-on@lists.macserve.net ------------------------------------------------------------- ©2002 Ruslan Zasukhin |