• 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 question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView question...


  • Subject: Re: NSTextView question...
  • From: Cameron Hayne <email@hidden>
  • Date: Mon, 06 Oct 2003 21:49:50 -0400

On Sunday, October 5, 2003, at 07:38 PM, Alex Lock wrote:

> I want to be able to dynamically put text in a text field, but I do
> NOT want said field to be editable. It seems when disabling
> editability in IB it also makes the textView insertString: message
> stop working. So, how does one accomplish this seemingly easy goal?

Maybe you have to turn on editability (as others have suggested) if you want
to use insertString, but you don't need to do so if you use setStringValue.

I have an NSTextField which is enabled but not editable and I use
setStringValue to set its value programmatically (in the action for a
stepper that increases & decreases a parameter value in steps).

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSTextView question... (From: Alex Lock <email@hidden>)

  • Prev by Date: Re: [OT] serial number validation algorithm?
  • Next by Date: Re: [OT] serial number validation algorithm?
  • Previous by thread: Re: NSTextView question...
  • Next by thread: Re: NSTextView question...
  • Index(es):
    • Date
    • Thread