Results 1 to 2 of 2
Thread: Objective C call main method
-
04-13-2009, 03:05 PM #1
- Member Since
- Mar 31, 2009
- Posts
- 1
Objective C call main methodHi 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
-
06-23-2009, 03:02 PM #2
- Member Since
- Jun 25, 2005
- Location
- On the road
- Posts
- 3,231
- 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.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.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Objective-C help
By bikka in forum macOS - Development and DarwinReplies: 22Last Post: 05-27-2014, 02:56 PM -
UIAlertView in AppDelegate have to call Method in ViewController
By poke in forum iOS DevelopmentReplies: 7Last Post: 05-20-2012, 04:59 AM -
Delete Single Call From Call Log
By mojorisin in forum iPhone Hardware and AccessoriesReplies: 1Last Post: 10-07-2010, 09:45 PM -
Help: Unable to receive Voice Call during Data (EDGE) call ..
By muneeb.ansari in forum iOS and AppsReplies: 0Last Post: 04-13-2010, 03:13 AM -
"Uncaught exception in main method: java.lang.UnsatisfiedLinkError:"
By Xerxes in forum Apple NotebooksReplies: 1Last Post: 06-26-2006, 12:05 PM