• 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
CICN icon to NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CICN icon to NSImage


  • Subject: CICN icon to NSImage
  • From: Esteban <email@hidden>
  • Date: Sun, 19 May 2002 14:42:57 -0700

Gore and for anyone else interested. I've figured out how to convert a CICN icon to NSImage.

You must select a file with a resource fork containing CICN resources in it.

CICN viewer opens the file and converts the CICNs to a PicHandles, and at that point there is a method to convert the PicHandle to NSImage directly or to first use QuickTime to convert the PicHandle to a TIFF and then to an NSImage.

By default the source code compiles with the option to convert the PicHandle to NSImage.

It then displays the CICN IDs and names in a table view. When you select the row with the desired CICN ID and name, the displayed image view, is set to the image of the CICN at that ID.

There are a couple of other options. This is pretty much a basic viewer.

The source code is at http://homepage.mac.com/estebanuribe/CICN_Icon_Viewer.tgz

I hope you find this useful.

-Esteban

>
>Subject: Help w/ NSPICTImageRep, NSQuickdrawView & offscreen drawing
>
>On Saturday, May 18, 2002, at 01:33 PM, Esteban wrote:

>Hi,

>This is a somewhat two part e-mail and long, but I would appreciate your time to read
> through this and provide help. Thank you in advance.

>What I need to do is get the NSImage equivalent of the PicHandle I created from a
>CIconHandle, and display that in a NSImageView.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re(2): Obj-C, class methods and instance methods
  • Next by Date: Handling OS specific line breaks
  • Previous by thread: Re: text views and dynamically reflow
  • Next by thread: Handling OS specific line breaks
  • Index(es):
    • Date
    • Thread