Re: Naming question (was: [Pyobjc-dev] Cocoa Sheets)
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-06-11 18:46:59
|
Ronald Oussoren wrote: > I think we should add a function that allows you to declare that a > method is used as the callback for a sheet, that way uses don't have > to guess the right value of the signature string. > > That brings me to a difficult question: How should we name that > function. > > How about: > > def NSSheetEndMethod(meth): > return selector(meth, signature='v@:@ii') > > Obvious alternatives are: > * NSEndSheetMethod > * NSSheetCallback > > I'm afraid I don't see a way to automaticly detect that a method will > be used as the callback for a sheet. We could create an informal protocol, and use a naming convention for the method. Just |