[MacRuby-devel] [MacRuby] #379: Nil symbol error.

MacRuby ruby-noreply at macosforge.org
Sat Oct 10 12:57:59 PDT 2009


#379: Nil symbol error.
---------------------------------------+------------------------------------
 Reporter:  hungerandthirst@…          |       Owner:  lsansonetti@…              
     Type:  defect                     |      Status:  new                        
 Priority:  minor                      |   Milestone:  MacRuby 0.5                
Component:  MacRuby                    |    Keywords:  nil, symbol error, selector
---------------------------------------+------------------------------------
 When trying to use beginSheet method in this fashion:

 {{{
                 NSApp.beginSheet(@bookmarkSheet,
                         modalForWindow:@mainWindow,
                         modalDelegate:self,
                         didEndSelector:"bookmark_created",
                         contextInfo:nil)
 }}}

 when the containing method is run, I get an error:
 '''nil is not a symbol'''

 I have defined
 {{{
         attr_accessor :bookmarkSheet, :mainWindow
 }}}
 and have linked them in IB.

 Workaround is to create a dummy selector/method for the didEndSelector:
 parameter. Will work fine then.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/379>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list