Hello all,

I'm working with a Snow Leopard 64-bit app that contains a Finder-like file browser that uses Carbon IconRef's. I'm trying to get the icons for the selected file with a custom overlay based on the current file selection and Icon Services. The problem I'm having is that the Icon Services CompositeIconRef() doesn't seem to work correctly. For example, if I provide

err = CompositeIconRef( targetIconRef, overlayIconRef, &compositeIconRef );
if (err != noErr) {
NSLog(@"CompositeIconRef() err = %d", err);
}

I don't get any errors, but all I get in the CompositeIconRef is the contents of the targetIconRef. If I swap the targetIconRef and overlayIconRef just for kicks, then I get just the contents of the overlayIconRef in the compositeIconRef. It looks like CompositeIconRef () only copies the source or target icon ref into the composite icon ref, completely ignoring the overlay icon ref.

Interestingly, the call seems to work fine for 32-bit applications.

If there's a way to extract an IconRef from an NSImage (I see that NSImage has an -initWithIconRef: method defined) after doing all compositing via NSImage and related classes that would be good too.

Any ideas or work-arounds really appreciated.

Best,
Dalmazio
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to