[Cuis-dev] Wrong feedback adding an extension category?
Gerald Klix
cuis.01 at klix.ch
Sat Mar 8 08:06:14 PST 2025
Confirmed!
There is are two issues with Browser>>#addExtensionCategory.
First there is a coding error, this fragment
(packageNames includes: (newCategoryName copyUpTo: $-)
allButFirst
should read
(packageNames includes: (newCategoryName copyUpToLast:
$-) allButFirst.
The conceptional problem is that there should be some message that
should complain in a sensible way if you use just the package name as
category (after the ‚*‘).
Please give me 45 minutes to fix this.
The intended use is to choose an existing category – ‚menu‘
in your case – and than choose „Add extension Category ...“
The text-input morph should contain the name „Graphics-Files-Additiona-menu“
in this case.
Til later,
Gerald
On 3/6/25 5:39 PM, H. Hirzel via Cuis-dev wrote:
> Hello
>
> I would like to add the method #exportAsPNG given below to class Morph
> with an extension category indicating that it belongs to package
> 'Graphics-Files-Additional'. The package has been loaded before.
>
> If I choose the menu option 'New extension Category ...' I get
>
> 'The selected prefix does not match any package name. Do you want
> to use it anyway?'
>
> If I say yes I can add it. However the feedback given seems to be wrong.
>
> Kind regards
>
> Hannes
>
> ------------------------
>
> exportAsPNG
> "Export the receiver's image as a PNG."
> self request: 'Enter file name'
> initialAnswer: (self printStringLimitedTo: 20),'.png'
> do: [:aString| (self imageForm: 32) writePNGfileNamed: aString]
>
More information about the Cuis-dev
mailing list