• 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: Clicking on a button I want some text to go into a NSTextView control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Clicking on a button I want some text to go into a NSTextView control (From: Brian Heibert <email@hidden>)

  • Prev by Date: Clicking on a button I want some text to go into a NSTextView control
  • Next by Date: Re: Desired Feature: Language plugins & documentation
  • Previous by thread: Clicking on a button I want some text to go into a NSTextView control
  • Next by thread: Fwd: Clicking on a button I want some text to go into a NSTextView control
  • Index(es):
    • Date
    • Thread