[Newbies] TextAttributes in OBDefinitions
Hi Matthew, Hi Robert.
for step 3. try self doOnlyOnce: [ self halt ] .
which can be primed by evaluating nil rearmOneShot
That allows you to get the debugger you want and then have the method behave normally.
***
Matthew Fulmer tapplek at gmail.com Thu Sep 27 00:45:25 UTC 2007
On Thu, Sep 27, 2007 at 02:13:17AM +0200, Robert
Krahn wrote:
Hello Squeakers,
I am trying to add TextAttributes to the text which
is shown in the
definition panel of OBBrowsers. My attempt to add
TextAttributes to
the results of #text methods of OBNodes had no
effect.
E.g. I changed OBUPackageVersionNode>>text to:
^ package longDescription asText allBold
and expected to read the details of package
versions in bold text.
But nothing changed.
You are probably doing this correctly, but something
higher up
is turning it into a String. The way I debug this is:
- Open an instance of a window that makes the call
- Minimize it
- Place a self halt in the method you want to trace.
- Unminimize the window
If you put a halt in while the window is active, you
are likely
to get an endless stream of debuggers until you
minimize the
window again
***
-
____________________________________________________________________________________ Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. http://autos.yahoo.com/index.html
Hello,
thanks for the advices. I found out that the TextAttributes work perfectly well for OBDefinitions. The reason why I did not see a change when I added "TextAttribute bold" was the code font I used (Monaco). This font has no bold style so nothing happened. That simple.
for step 3. try self doOnlyOnce: [ self halt ] .
which can be primed by evaluating “nil rearmOneShot”
That allows you to get the debugger you want and then have the method behave normally.
You can also use
self haltOnce.
And to enable it: self setHaltOnce (does not have to be the same object). In older squeak versions it is: self toggleHaltOnce.
Best regards, Robert
beginners@lists.squeakfoundation.org