From: Logan Capaldo Date: 2007-05-06T00:55:32+09:00 Subject: Re: RubyCocoa Sheets - help anyone? On 5/5/07, Tim Perrett wrote: > Jacob Burkhart wrote: > > try NSSelectorFromString > > > > http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSelectorFromString > > Hey Jacob > > Excuse my ignorence but I am not sure how that would help me? I dont > actually understand what the > @selector(didEndSheet:returnCode:contextInfo:) code is actually doing - > could you perhaps explain? If I can understand what it does i should be > able to translate it hopefully. > @selector is a way of reifying a method name. it's a bit like using :a_method_name in ruby or method(:method_name). Basically the sheet wants the name of a method to run when the sheet is done interacting with the user. > Cheers > > Tim > > -- > Posted via http://www.ruby-forum.com/. > >