Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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-----

References: 
 >[Help] How to get instance of instantiated Controller in nib from Controller in another nib? (Java) (From: "Mark Orchard" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.