[Cuis] Two questions

Juan Vuletich juan at jvuletich.org
Fri Jul 11 06:55:49 CDT 2014


Hi Hari,

On 7/10/2014 2:03 PM, Hari Balaraman wrote:
> Folks,
>
> I have two questions and many thanks in advance for any suggestions or advice you can offer:
>
> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving.
>
> I’ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument.
>
> This is what I type into my workspace:
>
> m:= ClassBuilder new.
> m newSubclassOf: NewClass type: Object instanceVariables: ‘newinstvariable' from: SubClassOfNewClass
>
> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step.
>
> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour?
>
> Best regards,
>
> Hari

Many times I find it useful to give focus to a field by just moving the 
mouse, without needing a mouse click.

If you prefer the more conventional 'click-to-focus' behavior, just 
evaluate:

     Preferences disable: #focusFollowsMouse

Maybe it could be useful to have this (and maybe others) accessible from 
the World / Preferences menu. Feel free to implement it, and publish the 
code (mail attach, Git pull request, any means is ok).

Cheers,
Juan Vuletich




More information about the Cuis mailing list