Monkey Patching, passing in extra data, FXRuby bug

R

Ralph Shnelvar

[Note: parts of this message were removed to make it a legal post.]

Because of an apparent bug in FXRuby/Fox/Something that causes a segmentation fault ...

I am looking for a workaround to a problem.

FXRuby defines a class FXTreeItem.

That class has an instance method for the spaceship operator .... <=>

And the spaceship operator is called by FXTreeList to sort the child node of the Tree for display.


What I want to do is monkey patch the spaceship operator with my own spaceship operator ... but I need to pass in extra information so that I can force the proper sorting order. I don't control how FXTreeList calls the the spaceship operator.



I would be grateful for suggestions on how to do this the Ruby way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top