Thread: Objective C call main method
04-13-2009, 04:05 PM #1
Objective C call main method
- Member Since
- Mar 31, 2009
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?
06-23-2009, 04:02 PM #2
- Member Since
- Jun 25, 2005
- On the road
- 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.CameraTime - Time lapse photography for novice and advanced users.
When asking questions, post the version of your software. You'll receive better answers.
Please post your results to the thread as it is good feedback.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By bikka in forum OS X - Development and DarwinReplies: 22Last Post: 05-27-2014, 03:56 PM
By poke in forum iOS DevelopmentReplies: 7Last Post: 05-20-2012, 05:59 AM
By mojorisin in forum iPhone Hardware and AccessoriesReplies: 1Last Post: 10-07-2010, 10:45 PM
By muneeb.ansari in forum iOS and AppsReplies: 0Last Post: 04-13-2010, 04:13 AM
By Xerxes in forum Apple NotebooksReplies: 1Last Post: 06-26-2006, 01:05 PM