Projects

Ticket #379 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Nil symbol error.

Reported by: hungerandthirst@… Owned by: lsansonetti@…
Priority: minor Milestone: MacRuby 0.5
Component: MacRuby Keywords: nil, symbol error, selector
Cc:

Description

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.

Change History

Changed 2 years ago by mattaimonetti@…

Tanks for the bug report, we are going to look into it. For documentation sake, here is a link to the stackoverflow discussion:  http://stackoverflow.com/questions/1548391/macruby-sheet-error

Changed 2 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Should be fixed in r2780.

Note: See TracTickets for help on using tickets.