[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Esteban Maringolo
It's been there as a refactoring for a while. Why a refactoring? Who knows... Esteban A. Maringolo On Tue, Apr 27, 2021 at 1:59 PM kmo wrote: > / a red circled exclamation point (hovering says 'Refactorings' - which > has a > menu for the +New subclass./ > > That sounds completely horrible.

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Richard Sargent
Upcasting is a behavioural feature. You would not play with the announcements. The class would receive it and its handler would delegate to a parent if necessary. On Tue, Apr 27, 2021 at 10:14 AM Tim Mackinnon wrote: > I appreciate the further thoughts of others - I should go back and look > at

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Tim Mackinnon
I appreciate the further thoughts of others - I should go back and look at Dolphin code (I think there are ways to run it on Mac now?). The upcasting Richard refers to is what I'm trying to do - which is how I got interested in understanding if you could tell if someone was subscribed to an

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread kmo
/ a red circled exclamation point (hovering says 'Refactorings' - which has a menu for the +New subclass./ That sounds completely horrible. Surely that's never going to remain in the official release. -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread kmo
This shows the browser button for a subclass on Pharo 9 on Linux (not the very latest Version 9 by the way). It only appears when you have the class definition tab selected. I hope this shows up - I posted it earlier but it just hasn't appeared in the list - so I'm posting it again. With my luck

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Richard Sargent
I have seen something called upcasting and downcasting (as contrasted with broadcasting). Mostly, I have seen it in UI layers. e.g. a leaf node receives a change notification, decides it isn't interested in handling the notification, and so passes it up to its parent, etc. Downcasting is

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Russ Whaley
Ah, in my v9 version, I see a red circled exclamation point (hovering says 'Refactorings' - which has a menu for the +New subclass. Good to know! Thanks! On Tue, Apr 27, 2021 at 12:17 PM kmo wrote: > I've attached a screenshot. The button appears when you select the class > definition tab in

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread John Aspinall
The MVP scenario you describe with “bubbling up” of event handling is how Dolphin implements command routing in MVP. I’d suggest that what you need is an implementation of this, which is a separate mechanism to Announcements. Possibly your suggested solution is a clever way to implement a

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread kmo
I've attached a screenshot. The button appears when you select the class definition tab in the browser. Press it and you get a dialog to enter a subclass name then the text template for that subclass appears in the browser class definition

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Russ Whaley
Thanks Sanjay... I don't use v8. I'm heavily invested in Spec2 and, well, my apps won't run in v8 :) On Tue, Apr 27, 2021 at 11:15 AM Sanjay Minni wrote: > Don't think it's there in v9. Check in v8 > > On Tue, 27 Apr, 2021, 7:50 pm Russ Whaley, wrote: > >> Can you send a screenshot of the

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Esteban Maringolo
The bubbling up is very common in UI, I don't know how it is implemented though. I don't know if event handling is programmed using events or imperative calls to continue "bubbling" up, or... the event is handler by the container presenter and passed down to the target (e.g. a button). So the end

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Tim Mackinnon
Hi guys - yes that fire and forget was always how I had viewed announcements, and potentially my scenario is misusing "announcements" which is why I was interested in views here. However - as announcements are typically a mechanism for farming out processing to others - how does one handle the

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Christopher Fuhrman
One thing I find challenging when teaching Pharo to new students -- especially those accustomed to IDEs with files, which is pretty much all of them ;) -- is that there are *sometimes* menus (depending on the Pharo version) to add a new package, new class, new protocol, but not a new method, etc.

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Sanjay Minni
Don't think it's there in v9. Check in v8 On Tue, 27 Apr, 2021, 7:50 pm Russ Whaley, wrote: > Can you send a screenshot of the plus button? I'm using v9 on MacOS and I > don't see a class + button... > > On Tue, Apr 27, 2021 at 9:47 AM kmo wrote: > >> Doing it by hand is fiddly and

[Pharo-users] [ANN] Next Pharo Sprint: April 30

2021-04-27 Thread Marcus Denker
Next Pharo Sprint: April 30 We will organize a Pharo sprint / Moose dojo April 30 Goals of this sprint: - Fix issues from tracker https://github.com/pharo-project/pharo/issues - Especially checking older issues This is a Remote Sprint, it happens on Discord.

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Sven Van Caekenberghe
The whole idea is to decouple producers and consumers, like in messaging systems. You should not care if there are other listening, just like the listeners should not care if there is someone posting data. Asking for subscribers is introducing a coupling. The announcement mechanism

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Esteban Maringolo
Exceptions are real, so your use case might justify it. In my experience I never had to test whether an announcer has some subscription, and before using announcements whether an object has some "listener" to some event. I always saw announcements as a fire and forget kind of architecture. Not

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Russ Whaley
Can you send a screenshot of the plus button? I'm using v9 on MacOS and I don't see a class + button... On Tue, Apr 27, 2021 at 9:47 AM kmo wrote: > Doing it by hand is fiddly and error-prone. I know - because that's the > way I > used to do it before I realised that the plus button at the top

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Tim Mackinnon
>From my rather long ramble below - I am still curious if its distasteful to >have a method on Announcer hasSubscriptionsHandling: anAnnouncement "Answer true if I have any subscribers to anAnnouncement" ^(registry subscriptionsHandling: anAnnouncement ) notEmpty Tim On Thu, 22 Apr 2021,

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread kmo
Doing it by hand is fiddly and error-prone. I know - because that's the way I used to do it before I realised that the plus button at the top of the browser bottom panel did it for me. (I had no idea that there was also a menu option on the refactorings menu). I think you might find the button to

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Russ Whaley
Now I'm wondering if I'm doing something wrong, or short-circuiting the correct approach... When I want to subclass - I simply select the class, and update the class definition page - moving the subclass name (which is the current class) to the class section, and replacing the subclass name with

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Sanjay Minni
No, I was not aware of the "+" in class definition tab. actually it's not there (yet) in Pharo 9 Win 64 which I am using. On Tue, 27 Apr 2021 at 18:13, kmo wrote: > I'm not surprised you missed it. I think it's not very intuitive having it > on > the refactoring sub-menu - especially when you

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread kmo
I'm not surprised you missed it. I think it's not very intuitive having it on the refactoring sub-menu - especially when you already have "new class" on the right click menu when you select a class. Why not have "create subclass" there as well? By the way, did you have trouble working out the

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Sanjay Minni
Thanks Sorry I missed it. (I did not expect it in refactorings) Noury Bouraqadi-2 wrote > It's already available. > > On Apr 27 2021, at 1:03 pm, Sanjay Minni > sm@ > wrote: >> Hi >> >> is there a way I can create a subclass when I have selected a class in >> the >> System Browser class

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Noury Bouraqadi
It's already available. On Apr 27 2021, at 1:03 pm, Sanjay Minni wrote: > Hi > > is there a way I can create a subclass when I have selected a class in the > System Browser class list (top 2nd panel). > > Couldnt see any option - Or is it that no such feature is needed > > > - > cheers, >

[Pharo-users] creating a subclass in system browser

2021-04-27 Thread Sanjay Minni
Hi is there a way I can create a subclass when I have selected a class in the System Browser class list (top 2nd panel). Couldnt see any option - Or is it that no such feature is needed - cheers, Sanjay -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html