Re: [Newbies] perform withArguments

2012-04-24 Thread Bert Freudenberg
On 24.04.2012, at 10:59, Dawson wrote: > .. I had thought there might be a way of "building up" the "cellObject > cellLock: aBoolean" ... judging from the replies, it seems that it is > either a) crazy, b) it can't be done, c) no one knows how to do it. It's a) crazy. Of course there's a way to

Re: [Newbies] perform withArguments

2012-04-24 Thread Randal L. Schwartz
> "Dawson" == Dawson writes: Dawson> .. I had thought there might be a way of "building up" the "cellObject Dawson> cellLock: aBoolean" ... judging from the replies, it seems that it is Dawson> either a) crazy, b) it can't be done, c) no one knows how to do Dawson> it. There are ways to do

Re: [Newbies] perform withArguments

2012-04-24 Thread Dawson
Hi Randal, thanks for your note ... yes we believe we've made some mistakes in our program already, but there are so many undocumented things in Squeak ... (or at least we can't find them, or know what to look for) that we figured we'd try to get a prototype going, and then fix it up as we learned

Re: [Newbies] perform withArguments

2012-04-24 Thread Dawson
Hi Louis, Thanks, your advice looks very good here we hadn't even thought about ordered collections (we studied the "Squeak by example book" before we started our project, but sometimes it's hard to figure out when exactly you might need to use stuff you read about, even if you do the examples) .

Re: [Newbies] perform withArguments

2012-04-24 Thread Randal L. Schwartz
> "Dawson" == Dawson writes: Dawson>(cellNumber =1) ifTrue: [cell1 cellLock:aBoolean]. Dawson>(cellNumber =2) ifTrue: [cell2 cellLock:aBoolean]. Dawson>(cellNumber =3) ifTrue: [cell3 cellLock:aBoolean]. Dawson>(c

Re: [Newbies] perform withArguments

2012-04-24 Thread Dawson
Hi, actually, that is not quite what we want to do (we meaning my son and I in our first squeak project). Since we were unable to assemble the message, we ended up doing a brute force method to get it to work: lockCell: aBoolean row: aRow column: aColumn self addressToCellNumber: aRow a

Re: [Newbies] perform withArguments

2012-04-23 Thread Bert Freudenberg
Ah that's curious - your reply did not have a Re: and was not threaded with the original message. Would have saved me to write a message very similar to yours ;) - Bert - On 23.04.2012, at 10:44, Louis LaBrunda wrote: > Hi, > > For your example: > > cellObject cellLock: aBoolean > > w

Re: [Newbies] perform withArguments

2012-04-23 Thread Bert Freudenberg
On 23.04.2012, at 07:58, OrgmiGeek wrote: > Hi, > I've read the sparse documentation on 'dynamic message' calls and I've > experimented a lot and still cannot figure out how to do something that > should be simple: > > I want to build a message like this: > > cellObject ce

[Newbies] perform withArguments

2012-04-23 Thread Louis LaBrunda
Hi, For your example: cellObject cellLock: aBoolean where cellObject is to look like: cell1, cell2, cell3 ..., or cell9 I don't think you want or need to use #perform:. You use #perform: when you want to construct the message name and sent the constructed message name to an object. In

[Newbies] perform withArguments

2012-04-23 Thread OrgmiGeek
Hi, I've read the sparse documentation on 'dynamic message' calls and I've experimented a lot and still cannot figure out how to do something that should be simple: I want to build a message like this: cellObject cellLock: aBoolean where cellObject is to look like: cell1,