• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?


  • Subject: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?
  • From: Dalmazio Brisinda <email@hidden>
  • Date: Mon, 26 Oct 2009 23:26:22 -0600

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Core Data: Undoing Cut-Paste, Drag-Drop between documents
  • Next by Date: Re: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?
  • Previous by thread: Re: Core Data: Undoing Cut-Paste, Drag-Drop between documents
  • Next by thread: Re: Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?
  • Index(es):
    • Date
    • Thread