discuss-gnustep
[Top][All Lists]
Advanced

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

NSWindowController should be a NSResponder


From: Wolfgang Lux
Subject: NSWindowController should be a NSResponder
Date: Wed, 22 Oct 2008 23:57:40 +0200

This patch fixes an issue that has bugged me already for quite a
while -- NSWindowController should be a subclass of NSResponder and
be part of the responder chain. Thus, window controllers automatically
receive event and action messages without having to make them delegates
of their windows (which does not help for event messages, anyway). This
has been the case in OS X for a very long time (AFAIR, one of the
developer releases), but never made it into GNUstep (though, curiously,
Gorm's class browser considers NSWindowController a subclass of
NSResponder already). So here is the patch to make this work.

Note that the patch changes the object layout of NSWindowController
and its subclasses, so it will be necessary to recompile all (gui)
applications after applying this patch.

Wolfgang

Attachment: wincontr.patch
Description: Binary data


reply via email to

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