bug-gnustep
[Top][All Lists]
Advanced

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

[bug #42230] Calling setState: on a button from the action method of ano


From: Fred Kiefer
Subject: [bug #42230] Calling setState: on a button from the action method of another button doesn't work...
Date: Fri, 02 May 2014 13:36:54 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Update of bug #42230 (project gnustep):

                  Status:                    None => Confirmed              
             Assigned to:                    None => FredKiefer             

    _______________________________________________________

Follow-up Comment #2:

German is correct, the best way here is to use this NSMatrix method. Only then
will you get the correct behaviour when you switch your matrix to radio mode.

For your specific problem it would be sufficient if either NSActionCell or
NSButtonCell would override the method setState: with the usual block of code
added:

  if (_control_view)
    {
      if ([_control_view isKindOfClass: [NSControl class]])
        {
          [(NSControl*)_control_view updateCell: self];
        }
    }

That way the control, in this case the matrix, would redisplay the changed
button. But this hasn't been documented by Apple and would not help with the
radio behaviour. I am almost sure that the old Next code could achieve this
behaviour without this special method, but I haven't any clue on how to do
this.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42230>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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