[MacRuby] #760: block arg in NSWorkspace#recycleURLs completionHandler: is not specified properly
#760: block arg in NSWorkspace#recycleURLs completionHandler: is not specified properly --------------------------------------+------------------------------------- Reporter: ryand-ruby@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------------+------------------------------------- {{{ % macirb
framework 'Foundation' framework 'AppKit' NSWorkspace.sharedWorkspace.recycleURLs [], completionHandler:nil }}}
results in: {{{ TypeError: unrecognized runtime type `?' from /Users/ryan/Work/p4/zss/src/Cocoa/Triage/(irb):1:in `<main>' }}} At the least, it should support a nil arg and just pass it through. -- Ticket URL: <http://www.macruby.org/trac/ticket/760> MacRuby <http://macruby.org/>
#760: block arg in NSWorkspace#recycleURLs completionHandler: is not specified properly --------------------------------------+------------------------------------- Reporter: ryand-ruby@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------------+------------------------------------- Comment(by martinlagardette@…): This is unfortunately a limitation of the current bridge support, which doesn't support C blocks (making it impossible for now to handle C blocks within MacRuby). As for the nil arg, you're probably right, but I don't know how safe it would be to allow "nil" for every `?` kind :-/ -- Ticket URL: <http://www.macruby.org/trac/ticket/760#comment:1> MacRuby <http://macruby.org/>
#760: block arg in NSWorkspace#recycleURLs completionHandler: is not specified properly --------------------------------------+------------------------------------- Reporter: ryand-ruby@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------------+------------------------------------- Comment(by lsansonetti@…): It is possible to workaround the MacRuby runtime by using performSelector:. {{{ NSWorkspace.sharedWorkspace.performSelector(:"recycleURLs:completionHandler:", withObject:[], withObject::nil) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/760#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby