On Tue, Sep 5, 2017 at 5:41 PM, H. Hirzel <[email protected]> wrote:

> On 9/5/17, Torsten Bergmann <[email protected]> wrote:
> >>How can I de-activate the ctrl-D shortcut for the Desktop manager for
> >>the time being?
> >
> > By not using DesktopManager.
>
> Sure...
>
> What I was asking for: How can I use it _without_ the ctrl-D short
> cut. Or how can I replace the ctrl - D shortcut with another short
> cut.
>
> >The shortcut handlers are installed upon load
> > initialize.
>
>
> And how can I bypass or adapt this initialize method?
>

You can find pertinent methods like this...
   (RPackageOrganizer default packageNamed: 'Balloon')
definedClasses flatCollect: [ :c |
c class methods select: [:m| m selector = #initialize ] ]

The rough way would be to edit them how you like and save the package
locally, then when  you load that into a fresh image it runs how you like.
More elegant might be setting a flag with startup actions which the
#initialize looks for, and contribute that mod back to the original repo.


>
> What is the initialization code in case I load the classes manually?
>
>

I'm not sure whether the class-side-initialize methods are run only when
Monticello loads a class, or also when loading via changesets or file-in.
You could experiment.

cheers -ben

Reply via email to