bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #15313] multiple notification sent on button pushing


From: reandras
Subject: [bug #15313] multiple notification sent on button pushing
Date: Thu, 29 Dec 2005 14:46:51 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2)

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]