Re: [Pyobjc-dev] NIB Validation & action methods
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2002-11-16 22:35:18
|
bb...@ma... wrote: > > Erm, when is this warning emitted? When the class is instantiated > > or when the button is clicked? If the latter: NibLoader could do it > > at class-build-time. > > Neither; when the NIB is loaded and the nib loading mechanism walks > through the connections to ensure that the appropriate target/action > methods can be connected. You mean when (eg.) a window is instantiated? > This is the only time that such validation can occur. Class > instantiation is too early as there may be additional methods added > to the class between the time the class is created and those methods > may contain the action implementations. Not sure if I get this. What NibLoader could do is, that as soon the module containing the class is imported, it verifies the action methods contained in the class body actually contain all the methods as specified in the nib. How does this compare to what the Cocoa runtime does? Just |