Hi,
I am working on a multi green and OS threaded implementation of Apple's
Bonjour service discovery.
I'd like to show the current Smalltalk process name in the Halt window
title.
Any clues are very much appreciated.
Thanks,
Stewart
Try
Processor activeProcess name
regards,
Norbert
Am 26.04.2022 um 10:45 schrieb Stewart MacLean stewart@xtra.co.nz:
Hi,
I am working on a multi green and OS threaded implementation of Apple's Bonjour service discovery.
I'd like to show the current Smalltalk process name in the Halt window title.
Any clues are very much appreciated.
Thanks,
Stewart
Hi,
in Pharo 9-11, from the StDebugger you can access the debugged process
using
self session interruptedProcess name
In the debugger class you can prepend that instruction in the window
title update methods:
StDebugger>>initializeWindow: aWindowPresenter
super initializeWindow: aWindowPresenter.
aWindowPresenter
title: self session interruptedProcess name , ': '
, self debuggerActionModel statusStringForContext;
initialExtent: self initialExtent;
whenClosedDo: [ self clear ].
self initializeShortcuts: aWindowPresenter
StDebugger>>newTitle
^ self session interruptedProcess name , ': '
, self debuggerActionModel statusStringForContext
There is no other ways yet to customize the window title.
I do not know how to do it in prior versions of Pharo.
Steven.
Le 2022-04-26 10:45, Stewart MacLean a écrit :
Hi,
I am working on a multi green and OS threaded implementation of Apple's Bonjour service discovery.
I'd like to show the current Smalltalk process name in the Halt window title.
Any clues are very much appreciated.
Thanks,
Stewart
Thanks Steven - exactly what I needed to know!
Cheers,
Stewart
On Tue, Apr 26, 2022 at 10:08 PM Steven Costiou steven.costiou@kloum.io
wrote:
Hi,
in Pharo 9-11, from the StDebugger you can access the debugged process
using
self session interruptedProcess name
In the debugger class you can prepend that instruction in the window title
update methods:
StDebugger>>initializeWindow: aWindowPresenter
super initializeWindow: aWindowPresenter.
aWindowPresenter
title: self session interruptedProcess name , ': '
, self debuggerActionModel statusStringForContext;
initialExtent: self initialExtent;
whenClosedDo: [ self clear ].
self initializeShortcuts: aWindowPresenter
StDebugger>>newTitle
^ self session interruptedProcess name , ': '
, self debuggerActionModel statusStringForContext
There is no other ways yet to customize the window title.
I do not know how to do it in prior versions of Pharo.
Steven.
Le 2022-04-26 10:45, Stewart MacLean a écrit :
Hi,
I am working on a multi green and OS threaded implementation of Apple's
Bonjour service discovery.
I'd like to show the current Smalltalk process name in the Halt window
title.
Any clues are very much appreciated.
Thanks,
Stewart
Thanks Norbert - I was meaning how to show it in the title of the Debugger
for when I get a lot of debuggers on different processes.
Please see Steven Costiou's solution.
Cheers,
Stewart
On Tue, Apr 26, 2022 at 9:57 PM Norbert Hartl norbert@hartl.name wrote:
Try
Processor activeProcess name
regards,
Norbert
Am 26.04.2022 um 10:45 schrieb Stewart MacLean stewart@xtra.co.nz:
Hi,
I am working on a multi green and OS threaded implementation of Apple's
Bonjour service discovery.
I'd like to show the current Smalltalk process name in the Halt window
title.
Any clues are very much appreciated.
Thanks,
Stewart