Testing a preference existance
Scott Wallace
scott.wallace at squeakland.org
Thu Apr 22 10:45:04 UTC 2004
Hi, Alexandre,
Obviously implementation of such a method would be easy (one could
invoke #valueOfFlag:ifAbsent: within it, for example.)
But what's an example of a situation where one would need such a method?
Perhaps the potential callers of #hasPreferenceNamed: are already
better served by directly calling the existing #valueOfFlag:ifAbsent:?
Cheers,
-- Scott
At 10:51 AM +0200 4/22/04, Alexandre Bergel wrote:
>Hi!
>
>There is no method such as Preferences class>>hasPreferenceNamed: aName
>Object>>respondsTo: could instead be used, but humm... I think that
>such a method should be there.
>
>But perhaps I am missing something...
>
>Cheers,
>Alexandre
More information about the Squeak-dev
mailing list
|