Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Objective C call main method (http://www.mac-forums.com/forums/os-x-development-darwin/148698-objective-c-call-main-method.html)

ncohen 04-13-2009 04:05 PM

Objective C call main method
 
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

xstep 06-23-2009 04:02 PM

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.


All times are GMT -4. The time now is 08:45 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.