Creating a new service

stéphane ducasse ducasse at iam.unibe.ch
Fri Oct 1 07:14:40 UTC 2004


take care of the meta stuff :)
sometimes explicit is good too (but I see this way you could have it as 
a menu bar too)

Stef
On 1 oct. 04, at 09:09, rrobbes wrote:

>
> Well, for a start the version on Squeakmap is not up to date
> (I have another one that I will publish soon, with much cleaner
> stuff).
> For now, I think that you should rescan the available services by
> executing :
> Service initialize
>
> In the next version, I plan to include a 'create new service'
> Service, taking care of this stuff.
> Cheers,
>  Romain
> Alexandre Bergel writes:
>> 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