From: Sherm Pendley Date: 2007-05-09T07:10:04+09:00 Subject: Re: RubyCocoa Sheets - help anyone? Tim Perrett writes: > For sure, that sounds like a very logical way of doing things. > > Here is my code to call the sheet... > > > def displaySheet(sender) > NSLog('opening sheet') > > NSBundle.loadNibNamed_owner('Prefs', self) > NSApp.beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo(@prefsWindow, > @mainWindow, nil, 'didEndSheet:returnCode:contextInfo', nil) ^ You forgot the trailing colon on the selector ---------^ Also, you're passing nil as the modalDelegate - you should pass the object to which you want Cocoa to send the selector - self in this case. sherm-- -- Web Hosting by West Virginians, for West Virginians: http://wv-www.net Cocoa programming in Perl: http://camelbones.sourceforge.net