Message: 4
Date: Mon, 30 Aug 2010 03:41:45 +0200
From: Tudor Girba tudor.gi...@gmail.com
Subject: Re: [Pharo-project] this style looks cool
To: Pharo-project@lists.gforge.inria.fr
Message-ID: 6950297a-3ff9-46b5-9ac5-caa382233...@gmail.com
Content-Type: text/plain; charset=US-ASCII;
This looks useful; how do you turn an image into a method, though?
Hi!
Have a look at the class side of MenuIcons. There are a bunch of import/export
methods.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
*contents := (StandardFileStream fileNamed: 'loop_icon.jpg') contents.
encondedContents := (Base64MimeConverter mimeEncode: contents readStream) .*
That basically gives you the string you have to embed in a method...
Cheers,
Guille
On Mon, Aug 30, 2010 at 9:42 AM, Alexandre Bergel
Thanks both of you for pointing me in the right direction. I was able to
get something similar to what is in OBMorphicIconsbreakpoint by doing
this:
methodContents := WriteStream on: ''.
(OBMorphicIcons iconNamed: #breakpoint) storeOn: methodContents.
methodContents inspect.
But the contents