Hi, I’d like to suppress the “trash can” cursor
when there’s garbage collection going on in runtime. Is there an easy way to do this? Cheers, Stewart |
Replace Cursor.GarbageCursor with any other cursor if you wish,
Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. -----Original Message----- From: Stewart MacLean [mailto:[hidden email]] Sent: Friday, September 22, 2006 4:26 AM To: [hidden email] Subject: How do I suppress garbage collection cursor in runtime? Hi, I'd like to suppress the "trash can" cursor when there's garbage collection going on in runtime. Is there an easy way to do this? Cheers, Stewart |
In reply to this post by Stew MacLean
Hi Boris,
Good idea. However, I am setting the cursor dynamically, so I'd have to set it to what ever is my current cursor so that it doesn't appear to change - which seems a bit cumbersome. I'd just like to switch it off. I guess I can just set it to whatever is current, but I haven't found where that happens as yet... and it's too late to look now... Cheers, Stewart >-----Original Message----- >From: Boris Popov [mailto:[hidden email]] >Sent: 22 September 2006 11:37 p.m. >To: Stewart MacLean; [hidden email] >Subject: RE: How do I suppress garbage collection cursor in runtime? > >Replace Cursor.GarbageCursor with any other cursor if you wish, > >Cheers! > >-Boris > >-- >+1.604.689.0322 >DeepCove Labs Ltd. >4th floor 595 Howe Street >Vancouver, Canada V6C 2T5 > >[hidden email] > >CONFIDENTIALITY NOTICE > >This email is intended only for the persons named in the message >header. Unless otherwise indicated, it contains information that is >private and confidential. If you have received it in error, please >notify the sender and delete the entire message including any >attachments. > >Thank you. > >-----Original Message----- >From: Stewart MacLean [mailto:[hidden email]] >Sent: Friday, September 22, 2006 4:26 AM >To: [hidden email] >Subject: How do I suppress garbage collection cursor in runtime? > >Hi, > >I'd like to suppress the "trash can" cursor when there's garbage >collection going on in runtime. > >Is there an easy way to do this? > >Cheers, > >Stewart |
In that case you could override,
Cursor class>>garbage ^self currentCursor Cursor class>>quickGarbage ^self currentCursor Hope this helps, -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. -----Original Message----- From: Stewart MacLean [mailto:[hidden email]] Sent: Friday, September 22, 2006 6:10 AM To: Boris Popov; [hidden email] Subject: RE: How do I suppress garbage collection cursor in runtime? Hi Boris, Good idea. However, I am setting the cursor dynamically, so I'd have to set it to what ever is my current cursor so that it doesn't appear to change - which seems a bit cumbersome. I'd just like to switch it off. I guess I can just set it to whatever is current, but I haven't found where that happens as yet... and it's too late to look now... Cheers, Stewart >-----Original Message----- >From: Boris Popov [mailto:[hidden email]] >Sent: 22 September 2006 11:37 p.m. >To: Stewart MacLean; [hidden email] >Subject: RE: How do I suppress garbage collection cursor in runtime? > >Replace Cursor.GarbageCursor with any other cursor if you wish, > >Cheers! > >-Boris > >-- >+1.604.689.0322 >DeepCove Labs Ltd. >4th floor 595 Howe Street >Vancouver, Canada V6C 2T5 > >[hidden email] > >CONFIDENTIALITY NOTICE > >This email is intended only for the persons named in the message >header. Unless otherwise indicated, it contains information that is >private and confidential. If you have received it in error, please >notify the sender and delete the entire message including any >attachments. > >Thank you. > >-----Original Message----- >From: Stewart MacLean [mailto:[hidden email]] >Sent: Friday, September 22, 2006 4:26 AM >To: [hidden email] >Subject: How do I suppress garbage collection cursor in runtime? > >Hi, > >I'd like to suppress the "trash can" cursor when there's garbage >collection going on in runtime. > >Is there an easy way to do this? > >Cheers, > >Stewart |
In reply to this post by Stew MacLean
"Stewart MacLean" <[hidden email]> wrote:
| Hi, | | I'd like to suppress the "trash can" cursor when there's garbage | collection going on in runtime. | | Is there an easy way to do this? | | Cheers, | | Stewart I would either redefine the senders to not use showWhile: or better create a NullCursor class which implemented showWhile: as a noop that simply evaluates its block argument and install it as Cursor.GarbageCursor. You can then easily toggle between your production and development treatments of the garbage cursor. | ----- Eliot Miranda ,,,^..^,,, mailto:[hidden email] VisualWorks Engineering, Cincom Smalltalk: scene not herd Tel +1 408 216 4581 3350 Scott Blvd, Bldg 36 Suite B, Santa Clara, CA 95054 USA Fax +1 408 216 4500 |
On Sep 22, 2006, at 10:54, [hidden email] wrote:
IndifferentCursor. AmbivalentCursor. DevelopmentOnlyCursor. PolyphasicCursor. :) -- Travis Griggs Objologist What's next, Intel Processors branded with "Apple Outside" stickers? DISCLAIMER: This email is bound by the terms and conditions described at http://www.key.net/disclaimer.htm |
In reply to this post by Stew MacLean
Hello Stewart,
Friday, September 22, 2006, 8:10:14 AM, you wrote: SM> Good idea. However, I am setting the cursor dynamically, so I'd SM> have to set it to what ever is my current cursor so that it SM> doesn't appear to change - which seems a bit cumbersome. I ran into something like this before, and I wish that each cursor had been its own class. That would have made things easier. But since it was not the case, and from what I had to do, I'd do it this way. Implement isGarbageCollectionCursor in Cursor, then refine beCursor to do nothing is self isGarbageCollectionCursor. Not very pretty because of all the == you will have to send in the test message, but it does the job. -- Best regards, Andres mailto:[hidden email] |
Free forum by Nabble | Edit this page |