Re: Hot to define a connection from source code?
Re: Hot to define a connection from source code?
- Subject: Re: Hot to define a connection from source code?
- From: Jens Alfke <email@hidden>
- Date: Thu, 28 Jan 2010 08:36:12 -0800
On Jan 28, 2010, at 6:38 AM, Jonathan Chacón wrote:
> I can use interface builder to add objects to a window, define outlets and actions but I can define a connection between an outlet and an action. How can I do this in sourceCode using objetive-C?
To set an outlet, just set the instance variable or property of the source object.
To set an action, call [sourceObject setTarget: myTarget] and [sourceObject setAction: @selector(myAction:)].
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden