Skip to content

Instantly share code, notes, and snippets.

@ngarbezza
Last active December 17, 2015 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngarbezza/5592287 to your computer and use it in GitHub Desktop.
Save ngarbezza/5592287 to your computer and use it in GitHub Desktop.
Pharo
"Close a window by title programatically - Pharo 1.4, 2.0"
(SystemWindow allInstances detect: [ :w | w label = '<title>' ] ifNone: [ ^ nil ]) delete
"Set global package-cache directory - Pharo 2.0"
MCCacheRepository default directory: ('/path/to/package-cache' asFileReference)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment