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];
  


_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to