Ticket #379 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.

