discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to connect an outlet to a controller(conmponent in a window or p


From: David T. Shen
Subject: Re: How to connect an outlet to a controller(conmponent in a window or panel) manually?
Date: Wed, 25 Feb 2009 06:02:28 -0800 (PST)

Thanks, It's OK!

David T. Shen wrote:
> 
> I want to connect an outlet to a textField controller/component in a
> window/panel, just "manually" or "Programmatically".
> I declare an outlet in .h file as blow:
> ------------------------
>   id txtInfo;
> -------------------------
> and here is the action for a button:
> ------------------------
> -(void) OKAction : (id) sender;
> ----------------------------
> 
> In the implement's OKAction, I want to change the txtInfo's string:
> 
> [txtInfo setStringValue: @" ..... " ];
> 
> ----
> 
> How can I connect the textField component to the outlet -- txtInfo --
> manually, and the action can visit the outlet?
> 
> Thanks in advance!
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-connect-an-outlet-to-a-controller%28conmponent-in-a-window-or-panel%29-manually--tp22180866p22203391.html
Sent from the GNUstep - General mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]