Objective C call main method

Status
Not open for further replies.
Joined
Mar 31, 2009
Messages
1
Reaction score
0
Points
1
Hi everybody,
In my main I create an object recorder and I call one of its method... in this method I would like to call a method of my main... is it possible? How can I do that?

Thanks
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
When calling the recorder object, you could pass 'self' of main to it as a parameter and use it to call back to main. You see that done with interface builder objects to your controller coded.

You could also set main up as a delegate of the recorder object. You'll have to look into the details of that, but that is common.

Another concern is if what you are doing should be be in main at all, or separated out.
 
Status
Not open for further replies.

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top