Hi--
I frequently run multiple Squeaks on my Mac, and it would be handy to be able to tell them apart in the Dock. How about setting the application window title and icon from command-line arguments?
thanks!
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177 + 1 415 287 3547
On 24 February 2012 16:25, Craig Latta craig@netjam.org wrote:
Hi--
I frequently run multiple Squeaks on my Mac, and it would be handy to be able to tell them apart in the Dock. How about setting the application window title and icon from command-line arguments?
AFAIRC, you can do it from image, there is a primitives to set the title.. but not icon perhaps.
And then to make it to take command-line arguments is just adding some startup code in your image to set the title and icon by checking a command-line args.
thanks!
-C
-- Craig Latta www.netjam.org/resume +31 6 2757 7177
- 1 415 287 3547
On 24.02.2012, at 16:25, Craig Latta wrote:
Hi--
I frequently run multiple Squeaks on my Mac, and it would be handy
to be able to tell them apart in the Dock. How about setting the application window title and icon from command-line arguments?
You can change the window title from image (see attachment, we use that in Etoys) but I know of no other Mac app that changes the app name dynamically ...
- Bert -
Hi, you can change window title and size from image. Bert's additions are integrated on current pharo and HostWindowPlugin works on Cocoa builds...
However, that wont change dock title, juts window title... afaik (I can, and I hope be wrong) that just can be done by having a "document application" and it is not so easy to adapt current vm to that... Anyway, I'm annoyed by that too, and I did some experiments (failed for now) to try adapt this... and I will still try :)
best, Esteban
El 24/02/2012, a las 12:36p.m., Bert Freudenberg escribió:
On 24.02.2012, at 16:25, Craig Latta wrote:
Hi--
I frequently run multiple Squeaks on my Mac, and it would be handy to be able to tell them apart in the Dock. How about setting the application window title and icon from command-line arguments?
You can change the window title from image (see attachment, we use that in Etoys) but I know of no other Mac app that changes the app name dynamically ...
- Bert -
<host window access.st.gz>
I have seen apps change the dock icon dynamically. So if there was a primitive that took a bitmap, similar to setting the cursor bitmap ...
- Bert -
On 24.02.2012, at 16:50, Esteban Lorenzano wrote:
Hi, you can change window title and size from image. Bert's additions are integrated on current pharo and HostWindowPlugin works on Cocoa builds...
However, that wont change dock title, juts window title... afaik (I can, and I hope be wrong) that just can be done by having a "document application" and it is not so easy to adapt current vm to that... Anyway, I'm annoyed by that too, and I did some experiments (failed for now) to try adapt this... and I will still try :)
best, Esteban
El 24/02/2012, a las 12:36p.m., Bert Freudenberg escribió:
On 24.02.2012, at 16:25, Craig Latta wrote:
Hi--
I frequently run multiple Squeaks on my Mac, and it would be handy to be able to tell them apart in the Dock. How about setting the application window title and icon from command-line arguments?
You can change the window title from image (see attachment, we use that in Etoys) but I know of no other Mac app that changes the app name dynamically ...
- Bert -
<host window access.st.gz>
yes, I have seen that too... but right now, all documentation I read says "you need a document application" (like Pages, etc.) I can change vm to be a document application (and image will be the document, so image name can be the dock name)
but that's not an easy change, and I would like to try other possibilities before (that's why I said "I hope be wrong in this")
Esteban
El 24/02/2012, a las 12:52p.m., Bert Freudenberg escribió:
I have seen apps change the dock icon dynamically. So if there was a primitive that took a bitmap, similar to setting the cursor bitmap ...
- Bert -
On 24.02.2012, at 16:50, Esteban Lorenzano wrote:
Hi, you can change window title and size from image. Bert's additions are integrated on current pharo and HostWindowPlugin works on Cocoa builds...
However, that wont change dock title, juts window title... afaik (I can, and I hope be wrong) that just can be done by having a "document application" and it is not so easy to adapt current vm to that... Anyway, I'm annoyed by that too, and I did some experiments (failed for now) to try adapt this... and I will still try :)
best, Esteban
El 24/02/2012, a las 12:36p.m., Bert Freudenberg escribió:
On 24.02.2012, at 16:25, Craig Latta wrote:
Hi--
I frequently run multiple Squeaks on my Mac, and it would be handy to be able to tell them apart in the Dock. How about setting the application window title and icon from command-line arguments?
You can change the window title from image (see attachment, we use that in Etoys) but I know of no other Mac app that changes the app name dynamically ...
- Bert -
<host window access.st.gz>
(meta comment) i always love seeing violation of KISS principle, like in this case, forcing people to jump on its head in order to get something simple and stupid. :)
On 24 February 2012 16:56, Esteban Lorenzano estebanlm@gmail.com wrote:
yes, I have seen that too... but right now, all documentation I read says "you need a document application" (like Pages, etc.) I can change vm to be a document application (and image will be the document, so image name can be the dock name)
but that's not an easy change, and I would like to try other possibilities before (that's why I said "I hope be wrong in this")
Esteban
El 24/02/2012, a las 12:52p.m., Bert Freudenberg escribió:
I have seen apps change the dock icon dynamically. So if there was a primitive that took a bitmap, similar to setting the cursor bitmap ...
- Bert -
On 24.02.2012, at 16:50, Esteban Lorenzano wrote:
Hi, you can change window title and size from image. Bert's additions are integrated on current pharo and HostWindowPlugin works on Cocoa builds...
However, that wont change dock title, juts window title... afaik (I can, and I hope be wrong) that just can be done by having a "document application" and it is not so easy to adapt current vm to that... Anyway, I'm annoyed by that too, and I did some experiments (failed for now) to try adapt this... and I will still try :)
best, Esteban
El 24/02/2012, a las 12:36p.m., Bert Freudenberg escribió:
On 24.02.2012, at 16:25, Craig Latta wrote:
Hi--
I frequently run multiple Squeaks on my Mac, and it would be handy to be able to tell them apart in the Dock. How about setting the application window title and icon from command-line arguments?
You can change the window title from image (see attachment, we use that in Etoys) but I know of no other Mac app that changes the app name dynamically ...
- Bert -
<host window access.st.gz>
vm-dev@lists.squeakfoundation.org