#379: Nil symbol error.
---------------------------------------+------------------------------------
 Reporter:  hungerandthi...@…          |       Owner:  lsansone...@…            
  
     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/>

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

Reply via email to