Squeak
  links to this page:    
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Code Snippets
Last updated at 7:15 am UTC on 16 June 2018
A Great Squeak Demo - Dan Ingalls 1998

String streamContents:

Installer mantis bugsAll

Moving methods to a different category

FAQ: How do I find all classes with a certain protocol?

How to create a 'go back to previous project' button

Recipe: Creating a 'jump-to-project' button

Is this the best page for powerful pieces of short, compact code? If so, here's one: Squeak has facilities for downloading arbitrary URLs, and for filing in from arbitrary streams. Putting it together, one can do things like:

'http://some.server/dir/file' asUrl retrieveContents contentStream fileIn

HTTPSocket httpFileInNewChangeSet: 'http://some.server/dir/file'


Extract content from wiki pages

Zip up a complete directory structure

Or what about this (found at the very bottom on the SARInstaller page on this Swiki), slightly modified here :
SARInstaller installSAR: 'SomeSqueakArchive-1.sar'

See also
How to create new text fonts
Browse all implementors of a message selector
Göran's Code Snippets Of The Day
Mouse button tester