Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-26 Thread Dave
Opps! I sent this by mistake, I already found the solution this weekend, I just changed the BitmapInfo to kCGImageAlphaPremulitipledFirst and all is well! Thanks a lot for your help, it's almost all working now. All the Best Dave Hi Jean, Thanks, I added the code you suggested and it basic

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-26 Thread Dave
Hi Jean, Thanks, I added the code you suggested and it basically works! I have one small problem left in that the colors are shifted, I think the routine I am returning the buffer to expects ARGB or BGRA and I am returning the opposite! Typical! Is there an easy way to get the pixels in t

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-23 Thread Jean-Daniel Dupas
Le 23 janv. 09 à 19:53, Dave a écrit : Hi Jean, Thank you so much for your help. I've almost got the code in place now. But please see below. On 23 Jan 2009, at 17:33, Jean-Daniel Dupas wrote: Also at this point, I'd like to get a pointer to the Pixel buffer in the CGContext and r

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-23 Thread Dave
Hi Jean, Thank you so much for your help. I've almost got the code in place now. But please see below. On 23 Jan 2009, at 17:33, Jean-Daniel Dupas wrote: Also at this point, I'd like to get a pointer to the Pixel buffer in the CGContext and return this. The code I already have will

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-23 Thread Jean-Daniel Dupas
Le 23 janv. 09 à 17:34, Dave a écrit : Hi Jean, On 23 Jan 2009, at 13:56, Jean-Daniel Dupas wrote: An icns file can be opened using NSImage methods. Then choose the representation you need and convert it to JPEG as you would do with any image. If you want to go the "hard" way (that is not

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-23 Thread Dave
Hi Jean, On 23 Jan 2009, at 13:56, Jean-Daniel Dupas wrote: An icns file can be opened using NSImage methods. Then choose the representation you need and convert it to JPEG as you would do with any image. If you want to go the "hard" way (that is not that hard): Use ReadIconFromFSRef() to lo

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-23 Thread Jean-Daniel Dupas
Le 23 janv. 09 à 14:29, Dave a écrit : Hi, Is there some sample code anywhere that renders (e.g. applies the mask etc.) an Icon from a .icns file at a given resolution? I'd then like to be able to save the rendered image as a JPEG file. If anyone knows of some sample code to get me going

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-23 Thread Dave
Hi, Is there some sample code anywhere that renders (e.g. applies the mask etc.) an Icon from a .icns file at a given resolution? I'd then like to be able to save the rendered image as a JPEG file. If anyone knows of some sample code to get me going or can point me to the best starting pl

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-21 Thread jonat...@mugginsoft.com
On 21 Jan 2009, at 08:50, Jean-Daniel Dupas wrote: iTunes contains a full list of iPod icon (in iTunes.rsrc). Could it be responsible to set the iPod icon ? A convenient way to browse this resource is with ThemePark. Goto menu File - Open Special - iTunes.rsrc http://www.geekspiff.com/so

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-21 Thread Jean-Daniel Dupas
iTunes contains a full list of iPod icon (in iTunes.rsrc). Could it be responsible to set the iPod icon ? Le 20 janv. 09 à 19:40, Russell Hancox a écrit : Dave, Due to there being an icon stored on the root of each iPod, I don't *think* there is an icon stored on the system for each one.

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-21 Thread Russell Hancox
Dave, Due to there being an icon stored on the root of each iPod, I don't *think* there is an icon stored on the system for each one. Russell On 20 Jan 2009, at 02:38 pm, wrote: Hi All, I would like to something similar which is to display the Icons of iPods. I can get the .icns files

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Jean-Daniel Dupas
Did you try -[NSWorkspace iconForFile:] ? Le 20 janv. 09 à 19:49, Dave a écrit : Hi, Yes, that's true. Can I get the Icon with the volume associated with an iPod? I can form the volume file path no problem. All the Best Dave On 20 Jan 2009, at 18:40, Russell Hancox wrote: Dave, Due to

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Dave
Hi, Yes, that's true. Can I get the Icon with the volume associated with an iPod? I can form the volume file path no problem. All the Best Dave On 20 Jan 2009, at 18:40, Russell Hancox wrote: Dave, Due to there being an icon stored on the root of each iPod, I don't *think* there is an i

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Sandro Noel
dave The only one i found was the one for he ipod touch, enjoy. //- // returns the default iPod Touch icon. + (NSImage *) getDefaultiPodTouchIcon{ IconRef iconRef; OSErr err = GetIconRef (kOnSystemDisk

Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Dave
Hi All, I would like to something similar which is to display the Icons of iPods. I can get the .icns files for the iPhone and iPod Touch from: /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ But where to locate the icons for iPods? Thanks a lot All the Best Dave On 11 Ja