bug-gnustep
[Top][All Lists]
Advanced

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

Fix, NSWindow (-validRequestorForSendType:...)


From: Georg Fleischmann
Subject: Fix, NSWindow (-validRequestorForSendType:...)
Date: Wed, 3 Nov 2010 12:12:10 +0800

Hi,

here is a small patch that also removes the FIXME from [NSWindow 
validRequestorForSendType:...].
It fixes a crash for me with one of my subclassed panels.

Best wishes,
Georg Fleischmann


*** Source/NSWindow.m.old       2010-07-27 13:30:33.000000000 +0800
--- Source/NSWindow.m   2010-11-03 12:07:55.887104486 +0800
***************
*** 4488,4495 ****
  {
    id result = nil;
  
!   // FIXME: We should not forward this method if the delegate is a NSResponder
!   if (_delegate && [_delegate respondsToSelector: _cmd])
      result = [_delegate validRequestorForSendType: sendType
                                        returnType: returnType];
  
--- 4488,4495 ----
  {
    id result = nil;
  
!   if (_delegate && [_delegate respondsToSelector: _cmd]
!       && ![_delegate isKindOfClass: [NSResponder class]])
      result = [_delegate validRequestorForSendType: sendType
                                        returnType: returnType];
  




reply via email to

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