• 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: NSTextView insrting text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView insrting text


  • Subject: Re: NSTextView insrting text
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 30 Mar 2006 23:05:30 +0100

I think because it is not editable, one cannot "insert" text. However, you probably can replace the text in the field without making it editable.

So, get the contents, use stringWithFormat or whatever to get the new string, and place it in there.

Mike.

P.S. someone please correct me if I'm wrong!

On 30 Mar 2006, at 22:51PM, Paul L. Gribble wrote:

When adding text to an NSTextView using insertText: it seems only to work if the NSTextView is Editable. So I have a workaround where I set it to be editable, then insertText, then set it not to be editable (I want it to be sort of a readout for the user who should not be able to type in it).

I must be doing it wrong ...???

Thanks,
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSTextView insrting text (From: "Paul L. Gribble" <email@hidden>)

  • Prev by Date: Re: Cocoa Newbies: Is this the best list?
  • Next by Date: Re: Opening a window in Core Data application
  • Previous by thread: Re: NSTextView insrting text
  • Next by thread: Working with Unicode
  • Index(es):
    • Date
    • Thread