Thanks both of you for pointing me in the right direction. I was able to get something similar to what is in OBMorphicIcons>>breakpoint by doing this:
methodContents := WriteStream on: ''. (OBMorphicIcons iconNamed: #breakpoint) storeOn: methodContents. methodContents inspect. But the contents are different, and if you substitute them for the contents of breakpoint, the picture looks different too... Thank you, Rob > *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 <[email protected] > >wrote: > > > > > > > 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 > > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. >
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
