Re: Naming question (was: [Pyobjc-dev] Cocoa Sheets)
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2003-06-11 18:51:27
|
On Wednesday, Jun 11, 2003, at 14:10 US/Eastern, Ronald Oussoren wrote: > I'm afraid I don't see a way to automaticly detect that a method will > be used as the callback for a sheet. Right. I don't believe there is a great answer for this one-- at least without asking developers to "follow a convention". In the case of that method, the method name doesn't matter. It is only the signature that matters-- even in ObjC. You specify a name and a method to be invoked, and it assumes the signature will be compatible. But what if we wrapped the various methods that take signatures and dynamically created and/or checked and/or enforced the signature at that time? There aren't that many entry points in the appkit that exhibit such behavior and every single one of them is precedent to a fairly laborious task-- popping down a sheet, for example-- and a few milliseconds spent validating API the first time through will never be apparent to the user (or developer). ? b.bum |