On 5/5/07, Tim Perrett <freestyle_kayaker / hotmail.com> 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/.
>
>