From: FUJIMOTO H. <hi...@im...> - 2003-08-22 22:44:41
|
Hi, At Fri, 22 Aug 2003 22:05:33 +0200, Roberto Huelga wrote: > I'm trying to use Drag and Drop in a ruby-cocoa application, but I > can't access to the NSFilenamesPboardType global variable. How can I > access it?. You can access it as a module function in the OSX module: OSX.NSFilenamesPboardType irb(main):013:0> OSX.NSFilenamesPboardType #<OSX::OCObject:0x20e97e class='NSCFString' id=0xa3074fd0> irb(main):014:0> OSX.NSFilenamesPboardType.to_s "NSFilenamesPboardType" Basically, a pre-defined variable typed as NSObject or descendants in Cocoa, is defined as a module function in the OSX module. Cheers, -- FUJIMOTO Hisakuni |