Creating a new service
Alexandre Bergel
bergel at iam.unibe.ch
Thu Sep 30 22:31:37 UTC 2004
Hi!
I would like to create a new service to open a workspace.
I created on the class side of Workspace a method:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
registeredServices
^ {
Service new
label: 'open Workspace';
shortLabel: 'Workspace';
description: 'Open a workspace';
action: [:class | Workspace new openAsMorphLabel: 'Workspace' inWorld: World];
shortcut: '<c-k>';
categories: #('open')
}
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following is true.
'open Workspace' asService isNil
What I missunderstood?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Squeak-dev
mailing list
|