[MacRuby-devel] NSPasteboard instance missing methods?

Laurent Sansonetti lsansonetti at apple.com
Sat Apr 24 13:34:16 PDT 2010


Hi Robert,

At a glance it seems to be callable:

$ ./miniruby -e "framework 'Cocoa'; pb = NSPasteboard.generalPasteboard; p pb.canReadObjectForClasses([], options: [])"
false

Are you sure you're forming the selector correctly? The selector seems to be canReadObjectForClasses:options:.

Laurent

On Apr 24, 2010, at 9:10 AM, robert gleeson wrote:

> Hey,
> 
> I'm fooling around with NSPasteboard - following the documentation found at:
> 
> http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/PasteboardGuide106/Articles/pbGettingStarted.html#//apple_ref/doc/uid/TP40008150-SW1
> 
> I've got an instance of NSPasteboard through:
> 
> "board = NSPasteboard.generalPasteboard"
> 
> but "board" doesn't respond to any methods mentioned later in the tutorial I posted.
> 
> I'm looking for the method: 
> "canReadObjectForClasses" 
> 
> So I can continue on.
> 
> Thanks ahead of time,
> Rob
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100424/b793f118/attachment.html>


More information about the MacRuby-devel mailing list