Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GetComponentIconSuite



On Oct 17, 2005, at 5:33 PM, Gerry Beggs wrote:
if (noErr != GetComponentIconSuite(selectedComponent, &iconSuite))
{
contentInfo.contentType = kControlContentIconSuiteHandle;
contentInfo.u.iconSuite = iconSuite;
SetControlData(iconControl, kControlNoPart, kControlIconContentTag, sizeof(contentInfo), &contentInfo);
}


The Handle returned by GetComponentIconSuite is only 76 bytes and is mostly zeroes.

The "noErr !=" looks like it should be "noErr ==".

I haven't looked at the bytes in an icon suite lately, but I suspect yours is OK. I think it's a structure containing handles to icon data of various sizes and depths.

Cheers,

--Dave

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >GetComponentIconSuite (From: Gerry Beggs <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.