[macruby] #97: A selector cannot be nil
#97: A selector cannot be nil ----------------------------------------+----------------------------------- Reporter: vincent.isambart@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- In Objectve-C a selector can be nil, for example the following code is correct: {{{ NSMenuItem *dummyItem = [[NSMenuItem alloc] initWithTitle:@"" action:nil keyEquivalent:@""]; }}} but in MacRuby we get an error: {{{ % macruby -e "framework 'Cocoa'; NSMenuItem.alloc.initWithTitle('', action:nil, keyEquivalent:'')" -e:1:in `initWithTitle:action:keyEquivalent:': can't convert Ruby object `nil' to Objective-C value of type `:' (ArgumentError) from -e:1:in `<main>' }}} So I think MacRuby should support conversion from nil for selectors. -- Ticket URL: <https://www.macruby.org/trac/ticket/97> macruby <http://macruby.org/>
#97: A selector cannot be nil ----------------------------------------+----------------------------------- Reporter: vincent.isambart@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.3 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------------+----------------------------------- Changes (by lsansonetti@apple.com): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.3 Comment: Fixed by r338/trunk. -- Ticket URL: <http://www.macruby.org/trac/ticket/97#comment:1> macruby <http://macruby.org/>
participants (1)
-
macruby