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

Re: Clearing an NSTextView


  • Subject: Re: Clearing an NSTextView
  • From: "Gary L. Wade" <email@hidden>
  • Date: Sun, 24 Feb 2008 13:16:37 -0700

[textView setString:@"Lyrics Code Here"];

Jeremy wrote:
Hey,

I have a small iTunes application and I am adding supporting the display of lyrics. Now I have it set up just like I want it to, and it looks amazing. Now the only problem is this:

When I use [NSTextView insertText:@"Lyrics Code Here"];, it doesn't delete the current text so that is it is replaced for the user... So after opening the lyrics for quite a few songs, it is a bundled up into one long set of lyrics. I looked at both NSTextView and the classes referenced by the insertText documentation. So how can I remove all the current text and replace it using insertText?

Thanks,
Jeremy
"For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match." - Bill Bryson



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Clearing an NSTextView
      • From: "I. Savant" <email@hidden>
References: 
 >Clearing an NSTextView (From: Jeremy <email@hidden>)

  • Prev by Date: Clearing an NSTextView
  • Next by Date: Re: Clearing an NSTextView
  • Previous by thread: Clearing an NSTextView
  • Next by thread: Re: Clearing an NSTextView
  • Index(es):
    • Date
    • Thread