• 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
[Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)


  • Subject: [Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
  • From: "Mark Orchard" <email@hidden>
  • Date: Fri, 20 Jul 2001 01:47:27 +1000

Hi all,

I have two nib files in my Java/Cocoa project.
I need to get a programmatic instance of an "instantiated" Controller in my
MainMenu.nib file from a Controller class in another nib file
Both nib files are loaded.
I don't want to make the method I need to access in my main Controller
"public static".

Something like,

<start_wild_guess>

(MyMainController) mainController =
NSUnknownClass.getInstanceFromNib("MainMenu.nib", "MyMainController");
result = mainController.wantedMethod();

Does this make sense? Is there an easier way or am I missing something
obvious?
(I've checked as much documentation as I can).

</end_wild_guess>

Any help would be appreciated.


Thanks

Mark Orchard


  • Follow-Ups:
    • Re: [Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
      • From: Brendan Younger <email@hidden>
    • RE: [Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
      • From: "Mark Orchard" <email@hidden>
  • Prev by Date: Re: [q] scriptSuite conflict problems (code included)
  • Next by Date: RE: [Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
  • Previous by thread: Incrementing retain count using DO
  • Next by thread: RE: [Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
  • Index(es):
    • Date
    • Thread