• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Damn sisters :-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Damn sisters :-)
      • From: Brendan Younger <email@hidden>
  • Prev by Date: logout and auto-login
  • Next by Date: Document-Based, but not really...
  • Previous by thread: Re: logout and auto-login
  • Next by thread: Re: Damn sisters :-)
  • Index(es):
    • Date
    • Thread