• 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: Getting an NSString out of an NSTextView;
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting an NSString out of an NSTextView;


  • Subject: Re: Getting an NSString out of an NSTextView;
  • From: Robert Tillyard <email@hidden>
  • Date: Wed, 11 Feb 2004 01:06:52 +0000

Thank you both, that works like a dream.

My problem seems to be that my version of Cocoa Browser doesn't show a method string: for NSTextStorage and I missed it on the online documentation.

Thanks, Regards, Rob.

On 11 Feb 2004, at 12:50 am, Douglas Davidson wrote:


On Feb 10, 2004, at 3:59 PM, Robert Tillyard wrote:

How do I get the the [NSString cString]? I seem to need to navigate NSTextStorage but I'm getting lost in the documentation.

NSTextStorage is a direct subclass of NSMutableAttributedString, which in turn is a direct subclass of NSAttributedString. Does that help?

Also, you don't want to use cString, because you want to have some control over the encoding used. If you don't know what encoding you want, try UTF-8; we have convenience methods for that.

Douglas Davidson
_______________________________________________
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.

  • Follow-Ups:
    • Re: Getting an NSString out of an NSTextView;
      • From: Ryan Bates <email@hidden>
References: 
 >Getting an NSString out of an NSTextView; (From: Robert Tillyard <email@hidden>)
 >Re: Getting an NSString out of an NSTextView; (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Getting an NSString out of an NSTextView;
  • Next by Date: Re: Getting an NSString out of an NSTextView;
  • Previous by thread: Re: Getting an NSString out of an NSTextView;
  • Next by thread: Re: Getting an NSString out of an NSTextView;
  • Index(es):
    • Date
    • Thread