• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hot to define a connection from source code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hot to define a connection from source code?


  • Subject: Re: Hot to define a connection from source code?
  • From: Jonathan Chacón <email@hidden>
  • Date: Thu, 28 Jan 2010 18:52:19 +0100

Hello,

thanks for your help but I don't know where I have to define de connection between outleets and actions. I have to type them in the appController, windowDelegate or where the outlets were defined?

I have to type the connection in a function/method of a class or like a variable or outleet in the declaration area of a class?

sorry but I'm newbie in Cocoa and Objetive-C

thanks and regards
	Jonathan Chacón

El 28/01/2010, a las 17:36, Jens Alfke escribió:

>
> 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

  • Follow-Ups:
    • Re: Hot to define a connection from source code?
      • From: Jens Alfke <email@hidden>
References: 
 >Hot to define a connection from source code? (From: "Jonathan Chacón" <email@hidden>)
 >Re: Hot to define a connection from source code? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Uncaught exceptions not terminating my app
  • Next by Date: Re: NSSlider
  • Previous by thread: Re: Hot to define a connection from source code?
  • Next by thread: Re: Hot to define a connection from source code?
  • Index(es):
    • Date
    • Thread