Laurent, Thanks! It works - I'm not sure what I did wrong, though. Maybe a typo? :-X By the way, is it possible to see what Objective-C methods an object can respond to? NSObject/Object#methods doesn't seem to list them on my side? Thanks, Rob On 24 Apr 2010, at 21:34, Laurent Sansonetti wrote:
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/Pasteb...
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