Mac Forums

Mac Forums (
-   OS X - Development and Darwin (
-   -   Objective C call main method (

ncohen 04-13-2009 03: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?


xstep 06-23-2009 03: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 03:47 AM.

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