Hi I will integrate some fixes now.
Stef > Hello and welcome :) > > > On 03 Nov 2013, at 18:36, nacho <[email protected]> wrote: > >> Hi, this is my first post in the Pharo group. >> I'm developing a simple Text Editor with some nice features as a way to >> understand how Spec works. It seems that Spec will be the default UI >> framework from Pharo 3 onwards, I know it's changing and evolving but I'll >> take the risk. > > Good to hear :) It is quite changing now, but should not change a lot > starting from now (plus a couple of days > waiting for the last changes to be integrated). > >> The problem I'm facing is that I'm lost at trying to add a "Save as..." >> option in the menu. > > As far as I know, there is a bug in TextModel where the menu is hardcoded, > and therefor can not be changed. > In addition, as you have said, it is currently using directly Morphic menus > that is bad. > > The issue 12051 [1] introduces Spec models for menus. The fix has yet to be > integrated. > So there are two solutions :) > 1) You wait a bit tip this issue is integrated, and the TextModel problem > solved (which should be done tonight) > 2) You load locally the patches so you can try :) > If you wanna do so you need to take the latest image and to merge the slices: > - 11920 (this one will give you merge conflicts, you can safely take > all the incoming versions) > - 12051. > - 11819 as soon as it is fixed > >> It seems that Spec is still using the Morphic MenuMorph>>ToggleMenuItemMorph >> but it's not clear to me hoy to add this item. >> On the other hand, inspecting the ComposableModel class, it seem that in the >> future this will be done directly in Spec as suggested by the >> ComposableModel>>addMenuItemsToWindowMenu: > > This method is to add custom menu entries to the window menu :) > > Ben > >> But so far that method simply says "do nothing". >> Any help? >> Thanks in advance >> Cheers >> Nacho >> >> >> >> -- >> View this message in context: >> http://forum.world.st/Building-a-simple-UI-with-Spec-Problem-with-menus-tp4718881.html >> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. >> > [1] https://pharo.fogbugz.com/default.asp?12051
