I found that forcing format = 1 like so does the trick:

        if (version == 7) // make it work in Lion
                format = NSAlphaFirstBitmapFormat;
        else if (version != 5) // this is original code
                format |= NSAlphaNonpremultipliedBitmapFormat;


On Sep 8, 12:58 pm, Scenario <[email protected]> wrote:
> Do you guys have a version of NSImage+IconData that works under Lion?
>
> No matter what I feed the icnsDataWithWidth method, I get errors about
> unsupported context parameters.

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

Reply via email to