URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=15313>
Summary: multiple notification sent on button pushing
Project: GNUstep
Submitted by: reandras
Submitted on: Thu 12/29/05 at 14:46
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
It is difficult to explain, but i am trying it:
I have a (sub)view A with to buttons (add, remove) in a (super)view S.
If I push the add button, a new (sub)view of this type (A) is created by the
view S with the [addsubview:positioned:relativeTo:] method on a
"addnewbutton" notification (defaultcenter) with this very (sub)view A as
notification object.
If I push the remove button, the sender (sub)view A object is removed from
the superview S on a "removebutton" notification (defaultcenter) with this
very (sub)view A as notification object.
The (super)view S is registered for each (sub)view A.
The remove works fine. But after some removed (sub)view A, at the third or
fourth try, the superview S receives multiple notifications with the same
object and creates multiple (sub)views A in place of only one.
It sometimes results a crash with message "insertObject:atIndex: out of
range".
I don't know if this a bug at all, or a bug in nsview or nsnotificationcenter
or nsbutton. Strange.
Remark: I use the debian sarge package of gnustep, not a most recent from
cvs. Any help is welcome. thanks
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=15313>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep