At 1:26 PM -0600 2/21/03, 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.

That's a problem, because CB doesn't yet support subclassing. So, D&D can be done if you're willing to write a custom subclass of your drop target in Objective-C, but it can't yet be done in pure Perl. :-(

Why not just stomp on a few of the NSWindow and NSView methods with overridden subroutines? It's yucky, but wouldn't it work?

Not from within a perl class that subclasses an objective C class. You need to construct a new objective C class that does the override which, while you can do it dynamically and thus from perl, it's not exactly trivial. Once Sherm gets it in, well, then the fun can really begin. :)
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to