[Pharo-project] mac menus in Pharo
I'm wondering if there is any interest in having mac menus in Pharo. This was done for Sophie and Scratch, and attempted for 3.10. I could drag the required change sets out of storage to implement the proper file/edit menu in Pharo and have it respond to cmd-Q etc if there is any interest... -- =========================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================
On 31.10.2008, at 21:18, John McIntosh wrote:
I'm wondering if there is any interest in having mac menus in Pharo. This was done for Sophie and Scratch, and attempted for 3.10. I could drag the required change sets out of storage to implement the proper file/edit menu in Pharo and have it respond to cmd-Q etc if there is any interest...
Yes! I want all the things that are in the new simple world-menu in a "real" menu. Marcus -- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker
Yes, I would like to have that too. Lukas On Fri, Oct 31, 2008 at 9:28 PM, Marcus Denker <denker@iam.unibe.ch> wrote:
On 31.10.2008, at 21:18, John McIntosh wrote:
I'm wondering if there is any interest in having mac menus in Pharo. This was done for Sophie and Scratch, and attempted for 3.10. I could drag the required change sets out of storage to implement the proper file/edit menu in Pharo and have it respond to cmd-Q etc if there is any interest...
Yes! I want all the things that are in the new simple world-menu in a "real" menu.
Marcus
-- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli http://www.lukas-renggli.ch
very much so yes! also, how hard would it be to hook into sleep and logout style events on the mac? it would be nice if pharo was aware of that but I don't know what is required. Did you need/solve that in Sophie? Mike
For Scratch we made a change to terminate the VM if you logout There is an info.plist setting SqueakQuitOnQuitAppleEvent which if set to true terminates the VM at logout time, no save. Likely this is NOT what you want, we could {if people want} pass up an event for the logout, and see what happens. I think there is something maybe for closing the main window on Windows? Not sure about sleep tho, don't really reading anything about getting an event when the user sleeps the system. On Oct 31, 2008, at 4:13 PM, Michael Roberts wrote:
very much so yes!
also, how hard would it be to hook into sleep and logout style events on the mac? it would be nice if pharo was aware of that but I don't know what is required. Did you need/solve that in Sophie?
Mike
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- = = = ======================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ========================================================================
On Oct 31, 2008, at 1:28 PM, Marcus Denker wrote:
On 31.10.2008, at 21:18, John McIntosh wrote:
I'm wondering if there is any interest in having mac menus in Pharo. This was done for Sophie and Scratch, and attempted for 3.10. I could drag the required change sets out of storage to implement the proper file/edit menu in Pharo and have it respond to cmd-Q etc if there is any interest...
Yes! I want all the things that are in the new simple world-menu in a "real" menu.
Marcus
Done (I think) Next time I'm at ESUG I must stay more than 5 hours so that people can buy me some beer. I've posted pharo10124WithMacMenus.1.image to my idisk in the /experimental/Pharo/ folder found via http://www.smalltalkconsulting.com/squeak.html Macintosh users can take it for a spin. I note we should have a more *generic* way to convert morphic menus to the structure needed for macintosh menus but it took me a couple of hours to figure out how to make the hierarchy mac menus since I've not done that before, plus I wasted some time looking at the complicated target, argument, selector mess on the morphic menu item before discovering *doButtonAction* did the required menu activation trick on the mophic menu item. Perhaps someone clever can figure out how to read all the morphic menus and build the require mac menus. I did a bit of hand coding instead. Once everyone is happy, could someone take the pharo10124WithMacMenus. 1.image and promote to the proper MC server, I'm not quite sure how that is done, and rather not risk screwing things up quite yet. Normally macintosh application also have Windows menu for multiple host windows. Once we actually get to having multiple host windows, why turning that menu on is lurking in the code base... disableHideMenuCmd disables the cmd-H for hide squeak VM. Some people might like that, personally in some images I prefer the hierarchy browser to come up... Anyway people can decide. -- = = = ======================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ========================================================================
+ 100 Stef On Oct 31, 2008, at 10:47 PM, Lukas Renggli wrote:
Yes, I would like to have that too.
Lukas
On Fri, Oct 31, 2008 at 9:28 PM, Marcus Denker <denker@iam.unibe.ch> wrote:
On 31.10.2008, at 21:18, John McIntosh wrote:
I'm wondering if there is any interest in having mac menus in Pharo. This was done for Sophie and Scratch, and attempted for 3.10. I could drag the required change sets out of storage to implement the proper file/edit menu in Pharo and have it respond to cmd-Q etc if there is any interest...
Yes! I want all the things that are in the new simple world-menu in a "real" menu.
Marcus
-- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli http://www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Done (I think)
Next time I'm at ESUG I must stay more than 5 hours so that people can buy me some beer.
Oh Yes! The next ESUG can really be a huge hacking camp so please book the dates :)
I've posted pharo10124WithMacMenus.1.image to my idisk in the /experimental/Pharo/ folder found via http://www.smalltalkconsulting.com/squeak.html
Macintosh users can take it for a spin.
I note we should have a more *generic* way to convert morphic menus to the structure needed for macintosh menus but it took me a couple of hours to figure out how to make the hierarchy mac menus since I've not done that before, plus I wasted some time looking at the complicated target, argument, selector mess on the morphic menu item before
what you are criticizing this piece of art :)
discovering *doButtonAction* did the required menu activation trick on the mophic menu item.
Perhaps someone clever can figure out how to read all the morphic menus and build the require mac menus.
I did a bit of hand coding instead.
Once everyone is happy, could someone take the pharo10124WithMacMenus.1.image and promote to the proper MC server, I'm not quite sure how that is done, and rather not risk screwing things up quite yet.
Normally macintosh application also have Windows menu for multiple host windows. Once we actually get to having multiple host windows, why turning that menu on is lurking in the code base...
disableHideMenuCmd disables the cmd-H for hide squeak VM. Some people might like that, personally in some images I prefer the hierarchy browser to come up... Anyway people can decide.
-- = = = = = ====================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Corporate Smalltalk Consulting Ltd. http:// www.smalltalkconsulting.com = = = = = ======================================================================
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
nice! I noticed: - Most items in the submenu System>Preferences>... do not do anything when being selected - testMenuHandlesCount and testCountsMacOnly fail To integrate these changes, you could just give us a change set (I assume the current Unnamed changeset in the image contains all relevant changes already), and we will then deal with MC. Adrian On Nov 1, 2008, at 05:59 , John M McIntosh wrote:
On Oct 31, 2008, at 1:28 PM, Marcus Denker wrote:
On 31.10.2008, at 21:18, John McIntosh wrote:
I'm wondering if there is any interest in having mac menus in Pharo. This was done for Sophie and Scratch, and attempted for 3.10. I could drag the required change sets out of storage to implement the proper file/edit menu in Pharo and have it respond to cmd-Q etc if there is any interest...
Yes! I want all the things that are in the new simple world-menu in a "real" menu.
Marcus
Done (I think)
Next time I'm at ESUG I must stay more than 5 hours so that people can buy me some beer.
I've posted pharo10124WithMacMenus.1.image to my idisk in the /experimental/Pharo/ folder found via http://www.smalltalkconsulting.com/squeak.html
Macintosh users can take it for a spin.
I note we should have a more *generic* way to convert morphic menus to the structure needed for macintosh menus but it took me a couple of hours to figure out how to make the hierarchy mac menus since I've not done that before, plus I wasted some time looking at the complicated target, argument, selector mess on the morphic menu item before discovering *doButtonAction* did the required menu activation trick on the mophic menu item.
Perhaps someone clever can figure out how to read all the morphic menus and build the require mac menus.
I did a bit of hand coding instead.
Once everyone is happy, could someone take the pharo10124WithMacMenus.1.image and promote to the proper MC server, I'm not quite sure how that is done, and rather not risk screwing things up quite yet.
Normally macintosh application also have Windows menu for multiple host windows. Once we actually get to having multiple host windows, why turning that menu on is lurking in the code base...
disableHideMenuCmd disables the cmd-H for hide squeak VM. Some people might like that, personally in some images I prefer the hierarchy browser to come up... Anyway people can decide.
-- = = = = = ====================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Corporate Smalltalk Consulting Ltd. http:// www.smalltalkconsulting.com = = = = = ======================================================================
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
On Nov 1, 2008, at 5:04 AM, Adrian Lienhard wrote:
To integrate these changes, you could just give us a change set (I assume the current Unnamed changeset in the image contains all relevant changes already), and we will then deal with MC.
Adrian
Ffenestri-b-2-WindowProxies Ffenestri-b-3-MultiHostWindows-Sunits Ffenestri-b-4-Events-Morphic HostMenus-Base HostMenus-Events HostMenus-Mac-SUnits HostMenus-Fixes-1 HostMenus-PostLoad-Changes See pharo10124WithMacMenus.2.image which I've placed on the idisk. I've made some changes one of the issues was using TheWorldMenu new, versus World worldMenu which seemed to fix the problem with some Preference menu cmds not doing anything. I note some menu lines are missing in the Preference menu, these are specialized toggled menu items. If someone wants to fiddle with those it requires a bit more integration to toggle the mac menu state as you change the state of the global, email me for details. Lastly I fixed the host menus test -- = = = ======================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ========================================================================
participants (7)
-
Adrian Lienhard -
John M McIntosh -
John McIntosh -
Lukas Renggli -
Marcus Denker -
Michael Roberts -
Stéphane Ducasse