How to put icons on other files (still problem)

Keith DeLong delong at redcort.com
Thu May 13 15:14:55 CDT 2004


Hi Chuck,
Select File Types from the Edit menu and create a file type, creator and
extension for you database (and index and/or other Valentina files if you
don't use a single file).

If you're deploying on Windows, you'll also want to call
ValentinaSetExtensions right after you set the creator. Windows knows
nothing of Mac file type and creator so the only way to differentiate your
files from Valentina's is to use different extensions.

HTH,

Keith DeLong



 
> I thought that I was having a RB problem, trying to get my app's icon on the
> Valentina db that I create, but maybe this is a question that I'll have more
> success with on this list.
> 
> After I do my SaveFolderItem  in RB, I execute:
> 
> mygoDB.schemaversion = 1
> mygodb.creator = "Dash"
> if f <> nil then rc= mygoDB.create(f,1,4*1024)
> 
> mygoDB is a property that's defined as type goDB.
> goDB is a class whose Super is VDatabase
> 
> What other steps do I need so that Finder recognizes that this file belongs
> to my app and not to the Valentina Carbon program?
> 
> chuck
> 
> 
> 
>> 
>> On May 5, 2004, at 10:57 PM, chuck hinkle wrote:
>>> No, I don't understand it.
>>> I can do a Get Info and see my program, and I can swap the icon. But
>>> am I
>>> creating the file with the wrong command. I'm using getsavefolderItem.
>>> I'm
>>> passing a custom filter. In Edit File Type, I've defined the custom
>>> filter
>>> and given it a MacCreator and MacType and Extension and icons. But the
>>> file
>>> that gets created with getsavefolditem has a Valentina Carbon icon and
>>> wants
>>> to run Valentina Carbon by default. It makes me really curious what
>>> will
>>> happen when a machine that doesn't have Valentina on it run the
>>> program.
>> 
>> There's nothing special about the folderitem returned from
>> GetSaveFolderitem. The filter is solely for configuring the dialog.
>> 
>> When you create a file, that creation mechanism is responsible for
>> setting up the file type. CreateTextFile will always create it with
>> TEXT and R*ch. CreateBinaryFile will create it with the type you give
>> it. Other mechanisms may or may not set the creator and file type.
>> 
>> So, in the end, you are responsible for changing it to your type if it
>> isn't the desired type after you create the file.
>> 
>> HTH,
>> Jon
>> 
>> 
>> -- 
>> Jonathan Johnson
>> Testing Department
>> REAL Software, Inc.
>> 
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://support.realsoftware.com/listmanager/>
>> 
>> Search the archives of this list here:
>> <http://support.realsoftware.com/listarchives/lists.html>
>> 
> 
> ------ End of Forwarded Message
> 
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
> 



More information about the Valentina mailing list