• 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
Executing methods in one class from within another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Executing methods in one class from within another


  • Subject: Executing methods in one class from within another
  • From: alex <email@hidden>
  • Date: Tue, 11 Jun 2002 17:05:32 -0700

Hi,

we have problems figuring out a way to access a method in one class form within another. I have, in an earlier project, managed to do so by subclassing NSApplication which provided one central location to actually store instances of any other controller class, therefore making everything accessible easily and to every class at any time.

The documentation refers to this as some kind of no-no. I don't really understand how else to modify some instance in one class from another class without having an instance of it.

I have done some searching but didn't come up with anything useful. The documentation on NSApplication is nto very helpful. Considering that this is a question that earlier or later will pop up for everyone I hope someone could point me to where this is explained, or just explain it to me.

Thanks
Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Executing methods in one class from within another
      • From: "Carlos A. Weber" <email@hidden>
    • Re: Executing methods in one class from within another
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: WARNINGS from Compiler on "length" how to rid myself of them!
  • Next by Date: Re: Executing methods in one class from within another
  • Previous by thread: Re: Extending NSTextView Contextual Menu
  • Next by thread: Re: Executing methods in one class from within another
  • Index(es):
    • Date
    • Thread