On 5/5/07, Tim Perrett <freestyle_kayaker / hotmail.com> wrote: > Ok cool, that makes sense, so I would need to define a sheet method that > runs just before the sheet is going to close? Its a callback for the > sheet effectivly then. > > I have tried instansiating both NSSelector and NSSelectorFromString, but > no luck. I have tried instansiating them in a number of ways: > > NSSelectorFromString.alloc.init('connectionSheetDidEnd') > NSSelector('connectionSheetDidEnd').alloc.init > > and so on... > > It complains it does not like the NSSelectorFromString and thinks it is > an uninitilized constant? > IIRC NSSelectorFromString is a good old fashioned C function, not a class. *checks to be sure* Yep: http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSelectorFromString > Cheers > > Tim > > -- > Posted via http://www.ruby-forum.com/. > >