• 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
NSTextView append Text help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView append Text help


  • Subject: NSTextView append Text help
  • From: Chad Eckles <email@hidden>
  • Date: Thu, 30 Apr 2009 01:37:02 -0400

Hello I'm very new to iphone dev and am having some issues with appending
text from my NSTextView the
the NSTextView name is txvMain
code I have is
[txvMain replaceCharactersInRange:NSMakeRange([[txvMain string]length],0)
withString:@"Hello"]];

and the errors I'm getting are
Warning: "UITextView" may not respond to '-string'
(Message without a matching method signature will be assumed to return "id"
and accept "..." as arguments.)
Warning:"UITextView" may not respond to
'-replaceCharactersInRange:withString'
error: syntax error before"]" token

BTW: code came straight from my book.
_______________________________________________

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: NSTextView append Text help
      • From: WT <email@hidden>
  • Prev by Date: Re: Why is NSString->FSRef so hard?
  • Next by Date: #import errors and @class warnings
  • Previous by thread: Re: Bindings + NS{Secure}TextField validation -> coerced value is not used
  • Next by thread: Re: NSTextView append Text help
  • Index(es):
    • Date
    • Thread