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

Re: NSTextView


  • Subject: Re: NSTextView
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 27 Nov 2008 11:48:42 +0100


Le 27 nov. 08 à 11:34, Graham Cox a écrit :


On 27 Nov 2008, at 9:27 pm, Mahaboob wrote:

Hi all,
I need to check whether the NSTextView contains any data.
For an NSTextField, [[txtName stringValue] length] should work.
Is there any method like this for a textView?


[[[myTextView textStorage] string] length];



NSAttributedString (a parent of NSTextStorage) has a -length method.

[[myTextView textStorage] length]


--Graham
_______________________________________________

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


References: 
 >NSTextView (From: Mahaboob <email@hidden>)
 >Re: NSTextView (From: Graham Cox <email@hidden>)

  • Prev by Date: set position of Alert panel
  • Next by Date: Re: Killing a Thread
  • Previous by thread: Re: NSTextView
  • Next by thread: Can I split an implementation file?
  • Index(es):
    • Date
    • Thread