Damn sisters :-)
Damn sisters :-)
- Subject: Damn sisters :-)
- From: Riccardo Santato <email@hidden>
- Date: Sun, 9 Dec 2001 10:45:32 +0100
Hi everybody,
I'm stuck into a very simple question but I can't manage how to get out:
getting values from "sister" classes.
watch out : I've said "sister" classes, not "sons" or "parent" ones, so I
can't use any type of heredity...
In my application I've put a NSTextField and below an NSBrowser; the
intent is to make NSBrowser displays the directory contained into the
NSTextField.
Here are the steps I've done so far:
1) Designed the GUI (pretty obvious... :-)
2) Created an NSObject subclass for controlling the GUI ("General_GUI")
3) Created and instantiated a subclass of NSBrowser, wich works as a
delegate for the browser ("MyBrowser")
Now I just want "MyBrowser" class to read variables contained into the
"General_GUI" one. I've tried to include every .h file, to use the
@public statement but nothing... they are sister classes !
Damn sisters, they always get you mad ! :-)
How can I access the data contained into another sister class ?
Hoping I haven't bored you, I'm waiting for your help :-))
Thank you !
--
Riccardo Santato
www.riccardosantato.com