Re: Clicking on a button I want some text to go into a NSTextView control
Re: Clicking on a button I want some text to go into a NSTextView control
- Subject: Re: Clicking on a button I want some text to go into a NSTextView control
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 20 Feb 2007 16:27:21 -0800
On 2/20/07, Brian Heibert <email@hidden> wrote:
Hi,
I have this code in my SPAction.m file
and when someone clicks on my "A" button I want it to put the letter
A in a editable NSTextView control how do I do that? Please bare
with me as I am new to XCode
This isn't an Xcode question (Xcode is a developer tool) but a Cocoa
development question. So in the future it is best to use the Cocoa-Dev
list (same site you found the xcode-users list on).
#import "SPAction.h"
@implementation SPAction
- (IBAction)A:(id)sender
// I tried this to put the letter "A" in the edit field or
{
[textField: setStringValue:@"A"];
}
I assume you meant (note no ":" after object name)...
[textField setStringValue:@"A"];
What kind of issue are you having? Does it not compile? Or does it not
do what you want when you run it?
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden