Thanks for reporting this issue. I was able to reproduce your issue if
I used a .icns file that was > 128K. I've just submitted a fix to the
mainline codebase; it should be fixed in the next release of MacFUSE
Core.

The problem was related to the getxattr "position" argument that is
used on resource forks. When returning a synthesized resource fork to
hold the custom icon, I was always returning the data for the entire
resource fork rather than the subrange requested. This should only
affect the case where your file system is using iconDataAtPath and the
synthesized resource fork becomes larger than 128K.

There isn't really a workaround for the 1.5 or previous MacFUSE
releases. It should be possible on MacFUSE 1.7 to work around this by
implementing:

valueOfExtendedAttribute:ofItemAtPath:position:error:

and returning the resource fork data yourself. You can use
GMResourceFork to help you construct the resource fork data.

This shouldn't be an issue on Tiger since it uses AppleDouble files
(._foo) for resource fork data.

Keep in mind that icon data with 512x512 representations can become
quite large. In my experience I don't think using these in your file
systems is worth the overhead.

ted

On Wed, Jul 9, 2008 at 6:40 PM, henrion <[EMAIL PROTECTED]> wrote:
>
> I've got a filesystem in Objective-C based off of the HelloFS sample
> code. This filesystem shows custom icons for directories. The icons
> are loaded from .icns files in the application bundle. Everything
> works OK when the max icon size in my .icns file is 128x128. However
> when I added 512x512 icons to my .icns file, all of a sudden the
> Finder is no longer displaying my custom icon for directories.
>
> In the debugger I can see that my iconDataAtPath: function is
> returning the loaded NSData with the loaded icon data however the icon
> never gets shown in the Finder. Has anyone else had any problems with
> 512x512 custom icons?
>
> This happens both with 1.5 and 1.7 on Leopard.
>
> Thanks,
> Tim Henrion
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to macfuse-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to