changing code in a skript
Hernan Tylim
htylim at yahoo.com.ar
Thu Oct 28 23:07:39 UTC 2004
Hi,
What about ....
Preferences class
compile:
'personalizeUserMenu: aMenu
aMenu addTitle: ''Martin Personalized Menu''.
aMenu addStayUpItem.
aMenu
add: ''browser''
target: Browser prototypicalToolWindow
action: #openInHand.'
notifying: nil.
Of course the string that you pass as an argument in compile: can be
whatever you like it to be.
Also note the double ' inside the string. They are needed because in a
string the ' character you need to escape it with another '.
Regards,
Hernán
> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org] On
> Behalf Of Martin Kuball
> Sent: Thursday, October 28, 2004 10:42 AM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: changing code in a skript
>
>
> Hi
>
> I wrote a small skript that intitalizes a new image with my
> preferences. Among other things I would like to customize the user
> menu. So how can I change the Preferences>>#personalizeUserMenu:
> method from within my skript?
>
> Martin
>
More information about the Squeak-dev
mailing list
|