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: How to grab IconRef from a .tiff file.



On 8/19/03 4:45 AM, Jiang, Juwan didst favor us with:

> Dear all:
>
> I want to use ImageWell to show a Image.
> I want to grab the IconRef from a .tiff file and show it into ImageWell.
>
> I do not let user select the file, but bundle the .tiff file into resource.
> Then I can call CFBundleCopyResourceURL to get the URL of the file.
> So what I want to know is how to get the IconRef from the the file.

If you want the icon of the file, use LaunchServices. If you want the
IconRef to contain the image in the file (which is what I assume), it would
be a lot simpler if you just stored the image as a .icns file in your bundle
instead of a .tiff file.

Larry
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



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.