RE: [Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
RE: [Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java)
- Subject: RE: [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 03:07:08 +1000
Duh!
I found one solution for this just after I posted.
result =
(((MyMainController)NSApplication.sharedApplication().delegate()).wantedMeth
od();
But this works because I made my MyMainController the application delegate.
I'm not sure how I'd still accomplish this if it wasn't the app delegate.
There must be a more elegant solution.
(I'll probably discover that just after I post this one too!)
Mark
-----Original Message-----