On Friday, February 21, 2003, at 02:11 PM, Sherm Pendley wrote:
On Friday, February 21, 2003, at 02:26 PM, Ken Williams wrote:
On Friday, February 21, 2003, at 12:43 PM, Sherm Pendley wrote:As a convenience, NSWindow and NSView - and probably some other classes as well - provide default "do-nothing" implementations of the NSDraggingDestination methods. To do anything useful, these default methods need to be overridden in a subclass, and your drop target needs to be an instance of that subclass.
Why not just stomp on a few of the NSWindow and NSView methods with overridden subroutines? It's yucky, but wouldn't it work?
Umm... that's what I said. You "stomp" on the default methods by creating a subclass of NSWindow/NSView/NSWhatever, and overriding whatever methods you want to customize.
No, I meant that you'd just define sub NSWindow::foo directly, but I guess if NSWindow isn't implemented in Perl (or rather, if the method dispatch isn't happening from within Perl) that wouldn't be possible.
-Ken
