Results 1 to 2 of 2
  1. #1

    Member Since
    Mar 31, 2009
    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?


  2. #2

    xstep's Avatar
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Objective-C help
    By bikka in forum OS X - Development and Darwin
    Replies: 22
    Last Post: 05-27-2014, 02:56 PM
  2. Replies: 7
    Last Post: 05-20-2012, 04:59 AM
  3. Delete Single Call From Call Log
    By mojorisin in forum iPhone Hardware and Accessories
    Replies: 1
    Last Post: 10-07-2010, 09:45 PM
  4. Help: Unable to receive Voice Call during Data (EDGE) call ..
    By muneeb.ansari in forum iOS and Apps
    Replies: 0
    Last Post: 04-13-2010, 03:13 AM
  5. Replies: 1
    Last Post: 06-26-2006, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts