[MacRuby-devel] RoxorReturnFromBlockException*
Martin Hawkins
martin.hawkins at gmail.com
Wed Mar 30 07:53:30 PDT 2011
>From what I can read in the archives, this was raised about 18 months
ago. Loosely following Matt's book, I've written the following code:
def showOpenPanel( sender)
openPanel = NSOpenPanel.openPanel
openPanel.setCanChooseDirectories( false)
openPanel.setShowsHiddenFiles( NSUserDefaults.standardUserDefaults.boolForKey( 'showHiddenFiles'))
openPanel.setAllowsMultipleSelection( true)
openPanel.beginSheetModalForWindow window, completionHandler:
Proc.new{|result|
return if (result == NSCancelButton)
# throws error
}
end
The result is (on OS X 10.7, MacRuby 0.10), when the cancel button is
pressed,
uncaught Objective-C/C++ exception...
terminate called after throwing an instance of
'RoxorReturnFromBlockException*'
Program received signal: “SIGABRT”.
sharedlibrary apply-load-rules all
Interestingly, on Lion, the output then appears to loop:
unable to read unknown load command 0x24
unable to read unknown load command 0x26
unable to read unknown load command 0x24
unable to read unknown load command 0x26
.
.
Do you need a new ticket?
More information about the MacRuby-devel
mailing list