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@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to