[Fxruby-users] Meaning of sender in handle(sender, sel, ptr)
Status: Inactive
Brought to you by:
lyle
From: Dalibor S. <da...@in...> - 2003-10-08 16:52:12
|
I have just spent couple of hours tracking an error causing my application to segfault. Finally I have found following construction in my code: @widget.handle(@widget, MKUINT(Widget::ID_SEL_COPY, SEL_COMMAND), nil) The sender (first argument) is the same object that should receive the message. After replacing sender with "self" the error (which demonstrated itself in completely unrelated part of code) went away. I just want to be sure it was the reason. The receiver does not suppose the message sender to be itself, right? Comments? Thanks Dalibor -- Dalibor Sramek http://www.insula.cz/dali | In the eyes of cats, dal...@in... | all things belong to cats. |