I recently started using Mac for Squeak coding. I knew this has been a problem for some time but what can I do to setSearchString: when I pressed Cmd-h?
Also, when I run a 3.8-derived image on "Squeak 5.7.4.1" on OS 10.6.7, I get a weird display artifact. Since the VM is for cocoa, I just shouldn't even bother running it and use "Squeak 4.2.5beta1U" instead?
-- Yoshiki
On 28.05.2011, at 02:50, Yoshiki Ohshima wrote:
I recently started using Mac for Squeak coding. I knew this has been a problem for some time but what can I do to setSearchString: when I pressed Cmd-h?
You can modify the shortcuts for system menu items using MacMenubarPlugin.
See http://wiki.squeak.org/squeak/3871
The original changesets for HostMenus are at
ftp://ftp.smalltalkconsulting.com/experimental/Ffenestri
The most recent version of that code is probably in Pharo's HostMenus package.
Also, when I run a 3.8-derived image on "Squeak 5.7.4.1" on OS 10.6.7, I get a weird display artifact. Since the VM is for cocoa, I just shouldn't even bother running it and use "Squeak 4.2.5beta1U" instead?
The 5.x line is not mature enough for general use yet, in my experience.
- Bert -
At Sat, 28 May 2011 11:58:43 +0200, Bert Freudenberg wrote:
On 28.05.2011, at 02:50, Yoshiki Ohshima wrote:
I recently started using Mac for Squeak coding. I knew this has been a problem for some time but what can I do to setSearchString: when I pressed Cmd-h?
You can modify the shortcuts for system menu items using MacMenubarPlugin.
See http://wiki.squeak.org/squeak/3871
The original changesets for HostMenus are at
ftp://ftp.smalltalkconsulting.com/experimental/Ffenestri
The most recent version of that code is probably in Pharo's HostMenus package.
I got back to it and just found a way to do it without plugin. Since "Undo" and "Clear" are grayed out in the Cog VM's Mac OS menu, I can assign Cmd-h and Cmd-q to those from the "Keyboard Shortcut" preferences and effectively kill these shortcuts. Cool.
-- Yoshiki
How? I'm confused by the fact that Cog wants to quit when I do cmd-q, instead of trying to autocomplete what I'm typing. I've not yet figured out how keyboard shortcuts are managed, which is driving me somewhat nuts. I'd rather it did *nothing* than pop an unexpected dialog wherein clicking the wrong thing can cause me to lose work...
On Jun 17, 2011, at 11:22 AM, Yoshiki Ohshima yoshiki@vpri.org wrote:
At Sat, 28 May 2011 11:58:43 +0200, Bert Freudenberg wrote:
On 28.05.2011, at 02:50, Yoshiki Ohshima wrote:
I recently started using Mac for Squeak coding. I knew this has been a problem for some time but what can I do to setSearchString: when I pressed Cmd-h?
You can modify the shortcuts for system menu items using MacMenubarPlugin.
See http://wiki.squeak.org/squeak/3871
The original changesets for HostMenus are at
ftp://ftp.smalltalkconsulting.com/experimental/Ffenestri
The most recent version of that code is probably in Pharo's HostMenus package.
I got back to it and just found a way to do it without plugin. Since "Undo" and "Clear" are grayed out in the Cog VM's Mac OS menu, I can assign Cmd-h and Cmd-q to those from the "Keyboard Shortcut" preferences and effectively kill these shortcuts. Cool.
-- Yoshiki
At Fri, 17 Jun 2011 11:41:40 -0700, Casey Ransberger wrote:
How? I'm confused by the fact that Cog wants to quit when I do cmd-q, instead of trying to autocomplete what I'm typing. I've not yet figured out how keyboard shortcuts are managed, which is driving me somewhat nuts. I'd rather it did *nothing* than pop an unexpected dialog wherein clicking the wrong thing can cause me to lose work...
0. Make sure you are running on Mac OS X.
1. Make sure that when your VM is running, items such as "Undo" and "Clear" are grayed out.
(The interface I'm using is in Japanese, so translation may vary in the following.)
2. From System Preference -> Keyboard and then choose "Keyboard Shortcut" tab.
3. "+" to add a new shortcut.
4. Choose "other" from Application drop down and nagivate to your VM.
5. type Undo to Menu Title.
6. Click on the field below and hit Cmd-q.
7 Click "Add".
-- Yoshiki
Oh, in sys prefs. Awesome. That was so obvious, I can't believe I didn't see it myself:)
Thank you!
On Jun 17, 2011, at 12:35 PM, Yoshiki Ohshima yoshiki@vpri.org wrote:
At Fri, 17 Jun 2011 11:41:40 -0700, Casey Ransberger wrote:
How? I'm confused by the fact that Cog wants to quit when I do cmd-q, instead of trying to autocomplete what I'm typing. I've not yet figured out how keyboard shortcuts are managed, which is driving me somewhat nuts. I'd rather it did *nothing* than pop an unexpected dialog wherein clicking the wrong thing can cause me to lose work...
Make sure you are running on Mac OS X.
Make sure that when your VM is running, items such as "Undo" and "Clear" are grayed out.
(The interface I'm using is in Japanese, so translation may vary in the following.)
From System Preference -> Keyboard and then choose "Keyboard Shortcut" tab.
"+" to add a new shortcut.
Choose "other" from Application drop down and nagivate to your VM.
type Undo to Menu Title.
Click on the field below and hit Cmd-q.
7 Click "Add".
-- Yoshiki
Mmm... yeah. My problem was likely the context shift between Squeak and host system.
On Jun 17, 2011, at 1:24 PM, Yoshiki Ohshima yoshiki@vpri.org wrote:
At Fri, 17 Jun 2011 12:41:48 -0700, Casey Ransberger wrote:
Oh, in sys prefs. Awesome. That was so obvious, I can't believe I didn't see it myself:)
Thank you!
Sure. But it is not obvious logically that why this even works... ^^;
-- Yoshiki
I switched to a new version of CogVM on Mac OS X ('Croquet Closure Cog VM [CoInterpreter VMMaker.oscog-eem.128] Croquet Cog 4.0.0') and it seems that the trick described below does not work anymore.
Does anybody know why? It is actually great if we can get Cmd-h and Cmd-q in a sanctioned way...
-- Yoshiki
At Fri, 17 Jun 2011 12:35:44 -0700, Yoshiki Ohshima wrote:
At Fri, 17 Jun 2011 11:41:40 -0700, Casey Ransberger wrote:
How? I'm confused by the fact that Cog wants to quit when I do cmd-q, instead of trying to autocomplete what I'm typing. I've not yet figured out how keyboard shortcuts are managed, which is driving me somewhat nuts. I'd rather it did *nothing* than pop an unexpected dialog wherein clicking the wrong thing can cause me to lose work...
Make sure you are running on Mac OS X.
Make sure that when your VM is running, items such as "Undo" and "Clear" are grayed out.
(The interface I'm using is in Japanese, so translation may vary in the following.)
From System Preference -> Keyboard and then choose "Keyboard Shortcut" tab.
"+" to add a new shortcut.
Choose "other" from Application drop down and nagivate to your VM.
type Undo to Menu Title.
Click on the field below and hit Cmd-q.
7 Click "Add".
-- Yoshiki
Bert suggested to remove the old one on the disk (which he said worked for him). It did not work for me. Even after I removed the old one, it stayed in the "other..." appliaction list, and trying to add a shortcut to the new VM did not have any affects, as if it is still connected to the old one. But then, I renamed the VM to "Cog2" and now Mac OS thinks it is a totally brand new app and let me add the shortcuts.
-- Yoshiki
At Tue, 04 Oct 2011 20:15:08 -0700, Yoshiki Ohshima wrote:
I switched to a new version of CogVM on Mac OS X ('Croquet Closure Cog VM [CoInterpreter VMMaker.oscog-eem.128] Croquet Cog 4.0.0') and it seems that the trick described below does not work anymore.
Does anybody know why? It is actually great if we can get Cmd-h and Cmd-q in a sanctioned way...
-- Yoshiki
At Fri, 17 Jun 2011 12:35:44 -0700, Yoshiki Ohshima wrote:
At Fri, 17 Jun 2011 11:41:40 -0700, Casey Ransberger wrote:
How? I'm confused by the fact that Cog wants to quit when I do cmd-q, instead of trying to autocomplete what I'm typing. I've not yet figured out how keyboard shortcuts are managed, which is driving me somewhat nuts. I'd rather it did *nothing* than pop an unexpected dialog wherein clicking the wrong thing can cause me to lose work...
Make sure you are running on Mac OS X.
Make sure that when your VM is running, items such as "Undo" and "Clear" are grayed out.
(The interface I'm using is in Japanese, so translation may vary in the following.)
From System Preference -> Keyboard and then choose "Keyboard Shortcut" tab.
"+" to add a new shortcut.
Choose "other" from Application drop down and nagivate to your VM.
type Undo to Menu Title.
Click on the field below and hit Cmd-q.
7 Click "Add".
-- Yoshiki
Looks like you've found a workaround. Not sure off the top of my head whether Squeak leaves anything in the system library or the user account library, but moving something out of app support in there often fixes stuff like this.
Just a thought.
Casey
On Oct 5, 2011, at 11:27 AM, Yoshiki Ohshima yoshiki@vpri.org wrote:
Bert suggested to remove the old one on the disk (which he said worked for him). It did not work for me. Even after I removed the old one, it stayed in the "other..." appliaction list, and trying to add a shortcut to the new VM did not have any affects, as if it is still connected to the old one. But then, I renamed the VM to "Cog2" and now Mac OS thinks it is a totally brand new app and let me add the shortcuts.
-- Yoshiki
At Tue, 04 Oct 2011 20:15:08 -0700, Yoshiki Ohshima wrote:
I switched to a new version of CogVM on Mac OS X ('Croquet Closure Cog VM [CoInterpreter VMMaker.oscog-eem.128] Croquet Cog 4.0.0') and it seems that the trick described below does not work anymore.
Does anybody know why? It is actually great if we can get Cmd-h and Cmd-q in a sanctioned way...
-- Yoshiki
At Fri, 17 Jun 2011 12:35:44 -0700, Yoshiki Ohshima wrote:
At Fri, 17 Jun 2011 11:41:40 -0700, Casey Ransberger wrote:
How? I'm confused by the fact that Cog wants to quit when I do cmd-q, instead of trying to autocomplete what I'm typing. I've not yet figured out how keyboard shortcuts are managed, which is driving me somewhat nuts. I'd rather it did *nothing* than pop an unexpected dialog wherein clicking the wrong thing can cause me to lose work...
Make sure you are running on Mac OS X.
Make sure that when your VM is running, items such as "Undo" and "Clear" are grayed out.
(The interface I'm using is in Japanese, so translation may vary in the following.)
From System Preference -> Keyboard and then choose "Keyboard Shortcut" tab.
"+" to add a new shortcut.
Choose "other" from Application drop down and nagivate to your VM.
type Undo to Menu Title.
Click on the field below and hit Cmd-q.
7 Click "Add".
-- Yoshiki
squeak-dev@lists.squeakfoundation.org