Bruce Prior | 1 Dec 23:50 2010
Picon

Re: Beginners Digest, Vol 55, Issue 12

I tried to load the Terse Guide with Monticello. It won't load because apparently I need the class, CustomHelp, first. Where might that be?
I'm running Squeak 4.1 update 9947 (1 Apr 10)
Bruce

On 10-11-30 4:00 AM, beginners-request <at> lists.squeakfoundation.org wrote:
Send Beginners mailing list submissions to beginners <at> lists.squeakfoundation.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.squeakfoundation.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-request <at> lists.squeakfoundation.org You can reach the person managing the list at beginners-owner <at> lists.squeakfoundation.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Terse Guide for Squeak (Bruce Prior) 2. Re: Terse Guide for Squeak (Bert Freudenberg) 3. Re: Terse Guide for Squeak (Hannes Hirzel) ---------------------------------------------------------------------- Message: 1 Date: Mon, 29 Nov 2010 11:27:11 -0800 From: Bruce Prior <b.prior <at> ieee.org> Subject: [Newbies] Terse Guide for Squeak To: beginners <at> lists.squeakfoundation.org Message-ID: <4CF3FE8F.4060301 <at> ieee.org> Content-Type: text/plain; charset="iso-8859-1" Dave, please advise what you mean by "Squeak developers' inbox." Where do I find it? Thanks. Bruce On 10-11-27 4:00 AM, beginners-request <at> lists.squeakfoundation.org wrote:
Send Beginners mailing list submissions to beginners <at> lists.squeakfoundation.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.squeakfoundation.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-request <at> lists.squeakfoundation.org You can reach the person managing the list at beginners-owner <at> lists.squeakfoundation.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Terse Guide for Squeak (was: [Newbies] How to give numbers/anything to my program?) (David T. Lewis) ---------------------------------------------------------------------- Message: 1 Date: Fri, 26 Nov 2010 13:46:11 -0500 From: "David T. Lewis"<lewis <at> mail.msen.com> Subject: Terse Guide for Squeak (was: [Newbies] How to give numbers/anything to my program?) To: beginners <at> lists.squeakfoundation.org Cc: squeak-dev <at> lists.squeakfoundation.org Message-ID:<20101126184611.GA75272 <at> shell.msen.com> Content-Type: text/plain; charset=us-ascii On Fri, Oct 01, 2010 at 06:58:55PM +0530, K. K. Subramaniam wrote:
On Friday 01 Oct 2010 2:58:55 am David T. Lewis wrote:
On Thu, Sep 30, 2010 at 11:00:48AM +0200, jon jonsen wrote:
Does anybody know where to get a list of the (most common) smalltalk-commands and a short description of them?
Hi, The "Terse Guide to Squeak" provides a handy reference: http://wiki.squeak.org/squeak/5699
UIManager was missing. I added it now. I would vote for this to go into the image (help->terse guide) or as an external file along with the distro.
I reformatted the Terse Guide so that it can be loaded into the Squeak help browser, and gave it a few updates and corrections. The result is in the Squeak developers' inbox. Dave ------------------------------ _______________________________________________ Beginners mailing list Beginners <at> lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners End of Beginners Digest, Vol 55, Issue 10 *****************************************
-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20101129/0ab8401a/attachment-0001.htm ------------------------------ Message: 2 Date: Mon, 29 Nov 2010 20:54:35 +0100 From: Bert Freudenberg <bert <at> freudenbergs.de> Subject: Re: [Newbies] Terse Guide for Squeak To: "A friendly place to get answers to even the most basic questions about Squeak." <beginners <at> lists.squeakfoundation.org> Message-ID: <547A77FE-0C0B-4D92-9FFA-A34A6A0ABBA4 <at> freudenbergs.de> Content-Type: text/plain; charset=us-ascii On 29.11.2010, at 20:27, Bruce Prior wrote:
Dave, please advise what you mean by "Squeak developers' inbox." Where do I find it? Thanks. Bruce
http://source.squeak.org/inbox.html - Bert - ------------------------------ Message: 3 Date: Tue, 30 Nov 2010 09:38:18 +0000 From: Hannes Hirzel <hannes.hirzel <at> gmail.com> Subject: Re: [Newbies] Terse Guide for Squeak To: "A friendly place to get answers to even the most basic questions about Squeak." <beginners <at> lists.squeakfoundation.org> Message-ID: <AANLkTikFw5iwPzduxvO9+tqrxVS3deSpHNBkfjAkyYRr <at> mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Or from within Squeak .... Tools menu / Monticello Browser / click on http://source.squeak.org/inbox / click on 'Open button' ==> The repository is opened ---> you select what you want and click 'Load' HTH --Hannes On 11/29/10, Bert Freudenberg <bert <at> freudenbergs.de> wrote:
On 29.11.2010, at 20:27, Bruce Prior wrote:
Dave, please advise what you mean by "Squeak developers' inbox." Where do I find it? Thanks. Bruce
http://source.squeak.org/inbox.html - Bert - _______________________________________________ Beginners mailing list Beginners <at> lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
------------------------------ _______________________________________________ Beginners mailing list Beginners <at> lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners End of Beginners Digest, Vol 55, Issue 12 *****************************************
_______________________________________________
Beginners mailing list
Beginners <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Sean P. DeNigris | 2 Dec 00:38 2010

Where is CustomHelp (was Re: Beginners Digest, Vol 55, Issue 12)


Bruce Prior wrote:
> 
> apparently I need the class, CustomHelp, first. Where might that be?
> 

It's part of HelpSystem - load the latest HelpSystem-Core from
http://source.squeak.org/trunk (see previous Monticello Browser instructions
in this thread).

HTH,
Sean
--

-- 
View this message in context: http://forum.world.st/Re-Beginners-Digest-Vol-55-Issue-12-tp3068213p3068272.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
David T. Lewis | 2 Dec 01:46 2010
Picon

Terse Guide update (was: Re: Beginners Digest, Vol 55, Issue 12)

Bruce,

Sean explained how to find CustomHelp in the trunk repository.

I also have moved the Terse Guide from the inbox into the trunk
(a few minutes ago), so now that is where you will find it now.
This means that if you are using an updated trunk image, the Terse
Guide will appear in the help browser when you go to the docking
bar (at the top of the screen) and select Help -> Help Browser.

Dave

On Wed, Dec 01, 2010 at 02:50:50PM -0800, Bruce Prior wrote:
> I tried to load the Terse Guide with Monticello. It won't load because 
> apparently I need the class, CustomHelp, first. Where might that be?
> I'm running Squeak 4.1 update 9947 (1 Apr 10)
> Bruce
> 
> On 10-11-30 4:00 AM, beginners-request <at> lists.squeakfoundation.org wrote:
> >Send Beginners mailing list submissions to
> >	beginners <at> lists.squeakfoundation.org
> >
> >To subscribe or unsubscribe via the World Wide Web, visit
> >	http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >or, via email, send a message with subject or body 'help' to
> >	beginners-request <at> lists.squeakfoundation.org
> >
> >You can reach the person managing the list at
> >	beginners-owner <at> lists.squeakfoundation.org
> >
> >When replying, please edit your Subject line so it is more specific
> >than "Re: Contents of Beginners digest..."
> >
> >
> >Today's Topics:
> >
> >    1. Terse Guide for Squeak (Bruce Prior)
> >    2. Re: Terse Guide for Squeak (Bert Freudenberg)
> >    3. Re: Terse Guide for Squeak (Hannes Hirzel)
> >
> >
> >----------------------------------------------------------------------
> >
> >Message: 1
> >Date: Mon, 29 Nov 2010 11:27:11 -0800
> >From: Bruce Prior<b.prior <at> ieee.org>
> >Subject: [Newbies] Terse Guide for Squeak
> >To: beginners <at> lists.squeakfoundation.org
> >Message-ID:<4CF3FE8F.4060301 <at> ieee.org>
> >Content-Type: text/plain; charset="iso-8859-1"
> >
> >Dave, please advise what you mean by "Squeak developers' inbox." Where
> >do I find it? Thanks.
> >
> >Bruce
> >
> >On 10-11-27 4:00 AM, beginners-request <at> lists.squeakfoundation.org wrote:
> >>Send Beginners mailing list submissions to
> >>	beginners <at> lists.squeakfoundation.org
> >>
> >>To subscribe or unsubscribe via the World Wide Web, visit
> >>	http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >>or, via email, send a message with subject or body 'help' to
> >>	beginners-request <at> lists.squeakfoundation.org
> >>
> >>You can reach the person managing the list at
> >>	beginners-owner <at> lists.squeakfoundation.org
> >>
> >>When replying, please edit your Subject line so it is more specific
> >>than "Re: Contents of Beginners digest..."
> >>
> >>
> >>Today's Topics:
> >>
> >>     1. Terse Guide for Squeak (was: [Newbies] How to give
> >>        numbers/anything	to my program?) (David T. Lewis)
> >>
> >>
> >>----------------------------------------------------------------------
> >>
> >>Message: 1
> >>Date: Fri, 26 Nov 2010 13:46:11 -0500
> >>From: "David T. Lewis"<lewis <at> mail.msen.com>
> >>Subject: Terse Guide for Squeak (was: [Newbies] How to give
> >>	numbers/anything	to my program?)
> >>To: beginners <at> lists.squeakfoundation.org
> >>Cc: squeak-dev <at> lists.squeakfoundation.org
> >>Message-ID:<20101126184611.GA75272 <at> shell.msen.com>
> >>Content-Type: text/plain; charset=us-ascii
> >>
> >>On Fri, Oct 01, 2010 at 06:58:55PM +0530, K. K. Subramaniam wrote:
> >>>On Friday 01 Oct 2010 2:58:55 am David T. Lewis wrote:
> >>>>On Thu, Sep 30, 2010 at 11:00:48AM +0200, jon jonsen wrote:
> >>>>>Does anybody know where to get a list of the (most common)
> >>>>>smalltalk-commands and a short description of them?
> >>>>Hi,
> >>>>
> >>>>The "Terse Guide to Squeak" provides a handy reference:
> >>>>    http://wiki.squeak.org/squeak/5699
> >>>UIManager was missing. I added it now.
> >>>
> >>>I would vote for this to go into the image (help->terse guide) or as an
> >>>external file along with the distro.
> >>I reformatted the Terse Guide so that it can be loaded into the
> >>Squeak help browser, and gave it a few updates and corrections.
> >>The result is in the Squeak developers' inbox.
> >>
> >>Dave
> >>
> >>
> >>
> >>------------------------------
> >>
> >>_______________________________________________
> >>Beginners mailing list
> >>Beginners <at> lists.squeakfoundation.org
> >>http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >>
> >>
> >>End of Beginners Digest, Vol 55, Issue 10
> >>*****************************************
> >>
> >-------------- next part --------------
> >An HTML attachment was scrubbed...
> >URL: 
> >http://lists.squeakfoundation.org/pipermail/beginners/attachments/20101129/0ab8401a/attachment-0001.htm
> >
> >------------------------------
> >
> >Message: 2
> >Date: Mon, 29 Nov 2010 20:54:35 +0100
> >From: Bert Freudenberg<bert <at> freudenbergs.de>
> >Subject: Re: [Newbies] Terse Guide for Squeak
> >To: "A friendly place to get answers to even the most basic questions
> >	about	Squeak."<beginners <at> lists.squeakfoundation.org>
> >Message-ID:<547A77FE-0C0B-4D92-9FFA-A34A6A0ABBA4 <at> freudenbergs.de>
> >Content-Type: text/plain; charset=us-ascii
> >
> >On 29.11.2010, at 20:27, Bruce Prior wrote:
> >
> >>Dave, please advise what you mean by "Squeak developers' inbox." Where do 
> >>I find it? Thanks.
> >>
> >>Bruce
> >
> >http://source.squeak.org/inbox.html
> >
> >- Bert -
> >
> >
> >
> >
> >------------------------------
> >
> >Message: 3
> >Date: Tue, 30 Nov 2010 09:38:18 +0000
> >From: Hannes Hirzel<hannes.hirzel <at> gmail.com>
> >Subject: Re: [Newbies] Terse Guide for Squeak
> >To: "A friendly place to get answers to even the most basic questions
> >	about	Squeak."<beginners <at> lists.squeakfoundation.org>
> >Message-ID:
> >	<AANLkTikFw5iwPzduxvO9+tqrxVS3deSpHNBkfjAkyYRr <at> mail.gmail.com>
> >Content-Type: text/plain; charset=ISO-8859-1
> >
> >Or from within Squeak ....
> >
> >Tools menu / Monticello Browser / click on
> >http://source.squeak.org/inbox / click on 'Open button'
> >
> >==>  The repository is opened --->  you select what you want and click 
> >'Load'
> >
> >HTH
> >
> >--Hannes
> >
> >On 11/29/10, Bert Freudenberg<bert <at> freudenbergs.de>  wrote:
> >>On 29.11.2010, at 20:27, Bruce Prior wrote:
> >>
> >>>Dave, please advise what you mean by "Squeak developers' inbox." Where do
> >>>I find it? Thanks.
> >>>
> >>>Bruce
> >>
> >>http://source.squeak.org/inbox.html
> >>
> >>- Bert -
> >>
> >>
> >>_______________________________________________
> >>Beginners mailing list
> >>Beginners <at> lists.squeakfoundation.org
> >>http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >>
> >
> >------------------------------
> >
> >_______________________________________________
> >Beginners mailing list
> >Beginners <at> lists.squeakfoundation.org
> >http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >
> >
> >End of Beginners Digest, Vol 55, Issue 12
> >*****************************************
> >

> _______________________________________________
> Beginners mailing list
> Beginners <at> lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
awood969 | 2 Dec 18:08 2010

Help with Morphic


Hi guys,

Very 'simply' I am trying to use aScriptableButton to change some text when
its clicked, however if I'm honest I don't know where to begin and can't
make heads or tails of the documentation available.

Could somebody please guide me in the right direction.

Thanks
Andrew
--

-- 
View this message in context: http://forum.world.st/Help-with-Morphic-tp3069716p3069716.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
Sean P. DeNigris | 2 Dec 19:22 2010

Re: Help with Morphic


awood969 wrote:
> 
> I am trying to use aScriptableButton to change some text when its clicked
> 

A little more background... change some text where?

Sean

p.s. The class comment says "A button intended for use with the card
architecture and the user-scripting system."   Are you sure you want a
ScriptableButton?  How did you choose it?
--

-- 
View this message in context: http://forum.world.st/Help-with-Morphic-tp3069716p3069886.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
Bruce Prior | 2 Dec 20:33 2010
Picon

Re: Beginners Digest, Vol 56, Issue 2

Many thanks, Dave and Sean. It all works as you say, and now I can access the Terse Guide in my image. This is great!
Bruce

On 10-12-01 4:46 PM, beginners-request <at> lists.squeakfoundation.org wrote:
Send Beginners mailing list submissions to beginners <at> lists.squeakfoundation.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.squeakfoundation.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-request <at> lists.squeakfoundation.org You can reach the person managing the list at beginners-owner <at> lists.squeakfoundation.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Re: Beginners Digest, Vol 55, Issue 12 (Bruce Prior) 2. Where is CustomHelp (was Re: Beginners Digest, Vol 55, Issue 12) (Sean P. DeNigris) 3. Terse Guide update (was: [Newbies] Re: Beginners Digest, Vol 55, Issue 12) (David T. Lewis) ---------------------------------------------------------------------- Message: 1 Date: Wed, 01 Dec 2010 14:50:50 -0800 From: Bruce Prior <b.prior <at> ieee.org> Subject: [Newbies] Re: Beginners Digest, Vol 55, Issue 12 To: beginners <at> lists.squeakfoundation.org Message-ID: <4CF6D14A.9050306 <at> ieee.org> Content-Type: text/plain; charset="iso-8859-1" I tried to load the Terse Guide with Monticello. It won't load because apparently I need the class, CustomHelp, first. Where might that be? I'm running Squeak 4.1 update 9947 (1 Apr 10) Bruce On 10-11-30 4:00 AM, beginners-request <at> lists.squeakfoundation.org wrote:
Send Beginners mailing list submissions to beginners <at> lists.squeakfoundation.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.squeakfoundation.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-request <at> lists.squeakfoundation.org You can reach the person managing the list at beginners-owner <at> lists.squeakfoundation.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Terse Guide for Squeak (Bruce Prior) 2. Re: Terse Guide for Squeak (Bert Freudenberg) 3. Re: Terse Guide for Squeak (Hannes Hirzel) ---------------------------------------------------------------------- Message: 1 Date: Mon, 29 Nov 2010 11:27:11 -0800 From: Bruce Prior<b.prior <at> ieee.org> Subject: [Newbies] Terse Guide for Squeak To: beginners <at> lists.squeakfoundation.org Message-ID:<4CF3FE8F.4060301 <at> ieee.org> Content-Type: text/plain; charset="iso-8859-1" Dave, please advise what you mean by "Squeak developers' inbox." Where do I find it? Thanks. Bruce On 10-11-27 4:00 AM, beginners-request <at> lists.squeakfoundation.org wrote:
Send Beginners mailing list submissions to beginners <at> lists.squeakfoundation.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.squeakfoundation.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-request <at> lists.squeakfoundation.org You can reach the person managing the list at beginners-owner <at> lists.squeakfoundation.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Terse Guide for Squeak (was: [Newbies] How to give numbers/anything to my program?) (David T. Lewis) ---------------------------------------------------------------------- Message: 1 Date: Fri, 26 Nov 2010 13:46:11 -0500 From: "David T. Lewis"<lewis <at> mail.msen.com> Subject: Terse Guide for Squeak (was: [Newbies] How to give numbers/anything to my program?) To: beginners <at> lists.squeakfoundation.org Cc: squeak-dev <at> lists.squeakfoundation.org Message-ID:<20101126184611.GA75272 <at> shell.msen.com> Content-Type: text/plain; charset=us-ascii On Fri, Oct 01, 2010 at 06:58:55PM +0530, K. K. Subramaniam wrote:
On Friday 01 Oct 2010 2:58:55 am David T. Lewis wrote:
On Thu, Sep 30, 2010 at 11:00:48AM +0200, jon jonsen wrote:
Does anybody know where to get a list of the (most common) smalltalk-commands and a short description of them?
Hi, The "Terse Guide to Squeak" provides a handy reference: http://wiki.squeak.org/squeak/5699
UIManager was missing. I added it now. I would vote for this to go into the image (help->terse guide) or as an external file along with the distro.
I reformatted the Terse Guide so that it can be loaded into the Squeak help browser, and gave it a few updates and corrections. The result is in the Squeak developers' inbox. Dave ------------------------------ _______________________________________________ Beginners mailing list Beginners <at> lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners End of Beginners Digest, Vol 55, Issue 10 *****************************************
-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20101129/0ab8401a/attachment-0001.htm ------------------------------ Message: 2 Date: Mon, 29 Nov 2010 20:54:35 +0100 From: Bert Freudenberg<bert <at> freudenbergs.de> Subject: Re: [Newbies] Terse Guide for Squeak To: "A friendly place to get answers to even the most basic questions about Squeak."<beginners <at> lists.squeakfoundation.org> Message-ID:<547A77FE-0C0B-4D92-9FFA-A34A6A0ABBA4 <at> freudenbergs.de> Content-Type: text/plain; charset=us-ascii On 29.11.2010, at 20:27, Bruce Prior wrote:
Dave, please advise what you mean by "Squeak developers' inbox." Where do I find it? Thanks. Bruce
http://source.squeak.org/inbox.html - Bert - ------------------------------ Message: 3 Date: Tue, 30 Nov 2010 09:38:18 +0000 From: Hannes Hirzel<hannes.hirzel <at> gmail.com> Subject: Re: [Newbies] Terse Guide for Squeak To: "A friendly place to get answers to even the most basic questions about Squeak."<beginners <at> lists.squeakfoundation.org> Message-ID: <AANLkTikFw5iwPzduxvO9+tqrxVS3deSpHNBkfjAkyYRr <at> mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Or from within Squeak .... Tools menu / Monticello Browser / click on http://source.squeak.org/inbox / click on 'Open button' ==> The repository is opened ---> you select what you want and click 'Load' HTH --Hannes On 11/29/10, Bert Freudenberg<bert <at> freudenbergs.de> wrote:
On 29.11.2010, at 20:27, Bruce Prior wrote:
Dave, please advise what you mean by "Squeak developers' inbox." Where do I find it? Thanks. Bruce
http://source.squeak.org/inbox.html - Bert - _______________________________________________ Beginners mailing list Beginners <at> lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
------------------------------ _______________________________________________ Beginners mailing list Beginners <at> lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners End of Beginners Digest, Vol 55, Issue 12 *****************************************
-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20101201/2f9455d1/attachment-0001.htm ------------------------------ Message: 2 Date: Wed, 1 Dec 2010 15:38:05 -0800 (PST) From: "Sean P. DeNigris" <sean <at> clipperadams.com> Subject: [Newbies] Where is CustomHelp (was Re: Beginners Digest, Vol 55, Issue 12) To: beginners <at> lists.squeakfoundation.org Message-ID: <1291246685403-3068272.post <at> n4.nabble.com> Content-Type: text/plain; charset=us-ascii Bruce Prior wrote:
apparently I need the class, CustomHelp, first. Where might that be?
It's part of HelpSystem - load the latest HelpSystem-Core from http://source.squeak.org/trunk (see previous Monticello Browser instructions in this thread). HTH, Sean
_______________________________________________
Beginners mailing list
Beginners <at> lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Sean P. DeNigris | 3 Dec 18:51 2010

Class variables with the same name as an existing class


If I add a class variable with the same name as an existing class, I get a
warning, which seems reasonable enough (although the warning looks like an
error, so I didn't realize I could just hit "proceed").  However, if I
subsequently remove the class variable, I get a dialog with two options:
1. move the name to Undeclared
2. cancel

It seems like, if a name is already used globally, it should not be
Undeclared, no?  What happens if a name is a class name and in Undeclared -
any conflict?

Thanks.
Sean

Example:
Object subclass: #AClassInTheSystem
	instanceVariableNames: ''
	classVariableNames: ''
	poolDictionaries: ''
	category: 'SpdSystemSpecs'.
	
Object subclass: #ClassWithGlobalSameNameAsAClass
	instanceVariableNames: ''
	classVariableNames: 'AClassInTheSystem'
	poolDictionaries: ''
	category: 'SpdSystemSpecs'.
--

-- 
View this message in context: http://forum.world.st/Class-variables-with-the-same-name-as-an-existing-class-tp3071477p3071477.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
Sean P. DeNigris | 3 Dec 20:10 2010

Re: Class variables with the same name as an existing class


Upon further inspection, the behavior of Class>>declare: is different from
Class>>addClassVarName: in how it signals the exception that a class var
name is already used.  #declare: throws a resumable error (which in my above
example is correct because the name is not used in the class or its
subclasses), while addClassVarName: throws a non-resumable Error.  

The key seems to be the use (in both methods) of "self bindingOf: var" to
determine if there is a conflict.  Since #bindingOf: checks for globals, too
(e.g. class names), it returns even if the current class and its hierarchy
do not use the name.  This misunderstanding is even reflected in the error
message: '... is already used as a variable name in class'

I fixed both to use Class>>canFindWithoutEnvironment:, which is what we want
to know, but should this error be resumable or not (i.e. if the class
already has a class or pool var with that name)?

In original Class>>declare:
	(newVars reject: [:var | self classPool includesKey: var])
		do: [:var | "adding"
			"check if new vars defined elsewhere"
			(self bindingOf: var) ifNotNil:[
					(DuplicateVariableError new)
						superclass: superclass; "fake!!!"
						variable: var;
						signal: var , ' is defined elsewhere'.
					conflicts := true]].

In original Class>>addClassVarName:
	self withAllSubclasses do: 
		[:subclass | 
		(subclass bindingOf: symbol) ifNotNil:[
			^ self error: aString 
				, ' is already used as a variable name in class ' 
				, subclass name]].
--

-- 
View this message in context: http://forum.world.st/Class-variables-with-the-same-name-as-an-existing-class-tp3071477p3071603.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
Kouma | 3 Dec 20:16 2010
Picon

Getting directory path?


Hi there,

I'm trying to work out how to play sound in squeak and used this:

(SampledSound fromWaveFileNamed: 'wave file path') play.

Worked fine, but what if I want to add new music from a morph? For instance
I have a button, which opens a browser and let me copy the path of a file.
How can I take out that path and put in the SampledSound? (providing it
copies the path to clipboard)

Also, I couldn't figure out how to play other type like mp3, ogg, mid and so
on. Wav is very large to be honest.

Thanks in advance.
--

-- 
View this message in context: http://forum.world.st/Getting-directory-path-tp3071614p3071614.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
Kouma | 3 Dec 20:22 2010
Picon

Re: Getting directory path?


I'm using this function to copy the path

Clipboard clipboardText: self fullName asText.

Because fullName = the whole thing, or so I think. I suppose I should take
it out to something else first, then add that "thing" to the SampledSound
function?

Sorry if my msg is confusing, I just knew about squeak like 3 days ago.
--

-- 
View this message in context: http://forum.world.st/Getting-directory-path-tp3071614p3071621.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.

Gmane