Re: [Pyobjc-dev] NibLoader.py: parsing nibs at runtime
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-11-17 06:53:33
|
On Saturday, Nov 16, 2002, at 21:52 Europe/Amsterdam, Just van Rossum wrote: > >> I'd probably prefer to emit a warning when you do define IBOutlet >> objects over doing it when you don't. Never warning at al is probably >> best. >> >> BTW. outlets are implemented using attributes/member variables in ObjC >> code, IBOutlets perform the same task in PyObjC. > > The thing that I don't understand is why they are class attributes: > I'd expect > (but then again, I don't grok them yet) they'd be specific to an > instance, and > therefore be instance attributes. How does it work? > IBOutlets properties, just like __builtin__.property. Those are defined in the class but have an effect in instances. Properties are part of the machinery introduced by new-style classes. Ronald |