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: Problems with PlotCIcon and Intel mac



On Wed, 18 Jan 2006 14:48:56, Jeremy Sagan <email@hidden> wrote:

> That sounds good. I would like to use 'icns' resource with
> PlotIconRef. I am having trouble obtaining an iconref though. If I
> have an 'icns' resource in my main application resource file (which
> is in the app's bundle) how do I turn that into an iconref I can call
> ploticonref with?

iconFamily = (IconFamilyHandle)GetResource('icns', ....);
err = RegisterIconRefFromIconFamily(kCreator, kType, iconFamily, &iconRef);
ReleaseResource(iconFamily);

Mike

 _______________________________________________
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: 
 >Re: Problems with PlotCIcon and Intel mac (From: Jeremy Sagan <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.