New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Objective C call main method

Thread Closed

Thread Tools

Member Since: Mar 31, 2009
Posts: 1
ncohen is on a distinguished road

ncohen is offline
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's Avatar
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
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 Closed

« relaunch an application in OS X Leopard | OpenMp and XCode 3.1.2 link pb »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
How to call dlopen for dll placed in /Application/Adobe Indesign CS3/Plugin folder pallavi0703 OS X - Development and Darwin 0 05-16-2008 08:41 AM
8 Year Old Prank Call... You gonna laugh your Heart Out MinaMACMan Schweb's Lounge 17 01-16-2008 01:17 PM
Call from (769)-100-800 Cutwolf Schweb's Lounge 3 08-27-2007 05:42 PM
Error Detected - Main Menu ambivalent OS X - Operating System 11 04-24-2007 09:54 AM
Call of Duty VS. Call of Duty United Offensive thendis OS X - Apps and Games 0 09-16-2005 07:33 AM

All times are GMT -4. The time now is 08:49 PM.

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

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?