<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi Juan, <br>
</font></p>
<p><font size="4">Since your update 5355 the accept: visitor is gone
from the Preference class.</font></p>
<p><font size="4">Although not used in the core image, it is needed
to visit Preference in third party application. I copy and paste
it below so you merge it back:</font></p>
<p><font size="4">Preference>>accept: aVisitor<br>
| visitMethod |<br>
self isTypeAClass <br>
ifTrue: [ visitMethod _ ('visit', type name,
'Preference:') asSymbol ]<br>
ifFalse: [visitMethod _ ('visit', type species asString,
'Preference:') asSymbol ].<br>
^ aVisitor perform: visitMethod with: self<br>
</font></p>
<p><br>
</p>
<p>Also I noted your edit of the type method:</p>
<p>Preference>>type<br>
(type inheritsFrom: CharacterSequence) ifTrue: [ type _
CharacterSequence ].<br>
^ type</p>
<p>It breaks the Preference behavior in DrGeo with my dedicated type
objects (DrGTypeArrow, DrGTypePointShape, etc.), all subclasses of
an Object. Indeed #inheritsFrom: is defined in Behavior not in
Object.<br>
</p>
<p>I am wondering if it is needed because we all detect type?<br>
</p>
<p>Preference>>detectType: anObject<br>
"When the type is not provided, we can try to deduce it "<br>
<br>
(anObject isKindOf: CharacterSequence) ifTrue: [
^CharacterSequence ].<br>
^ anObject class name<br>
caseOf: {<br>
[#True] -> [Boolean].<br>
[#False] -> [Boolean].<br>
[#StrikeFont] -> [AbstractFont].<br>
[#TrueTypeFont ] -> [AbstractFont]<br>
}<br>
otherwise: [anObject class]</p>
<p>I understand these changes are related to your utf-8 work in
progress.<br>
</p>
<p>Best</p>
<p>Hilaire<br>
</p>
</body>
</html>