[Pyobjc-dev] How to get NSDoc subclass's window outlet?
Brought to you by:
ronaldoussoren
From: David E. <epp...@ic...> - 2002-12-15 07:18:31
|
I have a Python subclass of NSDocument, that wants to access the NSDocument's window outlet. Is it possible? If I do window = objc.IBOutlet("window"), I get None as the value of the outlet (despite it being connected in the nib, and other outlets working). But if I don't set the outlet in the Python code, I get exception: No attribute window. I can't see an accessor function that would give me the same information in the NSDocument documentation. Obvious workaround: make a redundant outlet with another name...so this isn't urgent, but I would eventually like to know. -- David Eppstein UC Irvine Dept. of Information & Computer Science epp...@ic... http://www.ics.uci.edu/~eppstein/ |