Share

IconFamily

Tracker: Bugs

5 Icon\r file is not set invisible as expected (version 0.9.3) - ID: 2794260
Last Update: Attachment added ( tkmcintosh )

In -setAsCustomIconForDirectory:withCompatibility:, the Icon\r file is not
set invisible as expected (in Mac OS 10.5.7, at least).

Note that the Icon\r file is always created anew by the code:
if( ![iconrPath getFSRef:&iconrFSRef createFileIfNecessary:YES] )
return NO;
since the file was previously deleted if it already existed. Therefore,
the subsequent FSGetCatalogInfo() call should never fail unless something
is really wrong, which means the FinderInfo structure will not be
initialized as desired. It also seems to be necessary to call
FSSetCatalogInfo() as FSCreateResFile() does not appear to update the
FinderInfo on an existing file as the code seems to expect.

The attached version of IconFamily.m addresses these issues and makes the
method work as expected in my application.


Timothy McIntosh ( tkmcintosh ) - 2009-05-20 08:21

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
IconFamily.m Download

Change ( 1 )

Field Old Value Date By
File Added 327733: IconFamily.m 2009-05-20 08:23 tkmcintosh