Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gonche1124

macrumors newbie
Original poster
Aug 6, 2009
27
0
Hi,

I have a method in Appcrontroller which returns the value of a variable, I want to call this method from another class, how can I do this??

Thank you
 
Hi,

I have a method in Appcrontroller which returns the value of a variable, I want to call this method from another class, how can I do this??

Thank you

Assuming your AppController class is the application delegate, you can call the methods with these as the receiver:

[[NSApplication sharedApplication] delegate] or [NSApp delegate]
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.