Yes, I think you can reuse the idea of OBBreakpoint, which is using "objects as methods" (kind of proxies for method executions). That way you don't modify the original source, but instead you replace in the MethodDictionary, the original CompiledMethod� with a proxy.�
You could create an abstract class OBMethodProxy or something like that, and then just subclass and say which literal to add (#halt, #todo, #revised, etc)

Cheers

On Tue, Oct 25, 2011 at 1:34 PM, Bernat Romagosa <tibabenfortlapalanca@gmail.com> wrote:
Thanks, I'll take a look at�OBCmdBreakpoint :)


2011/10/25 Torsten Bergmann <astares@gmx.de>
>The problem with flagging is that you are modifying the source code, I'd
>prefer something provided by the IDE...

Yes I know that it modifies the source code. It was more a pointer
to how you can influence the icons.
Currently AFAIK the IDE has no "to do list" - but you can implement one.

You could provide an own OBCommand subclass to implement a
"toggle TODO" command for the OmniBrowser. Look at "OBCmdBreakpoint"
for an example.

If you dont want to modify the source/keep the info on the methods
itself you have to manage the todo list elsewhere - e.g. implement
a ToDoList class with a default instance.
Depending on the entries you can show a different icon, ...

Bye
T.



--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de




--
Bernat Romagosa.



--
Mariano
http://marianopeck.wordpress.com