• 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: How do you set the text in an NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you set the text in an NSTextView?


  • Subject: Re: How do you set the text in an NSTextView?
  • From: Mark <email@hidden>
  • Date: Sat, 8 May 2010 10:25:53 +0100


On 8 May 2010, at 07:02:59, G S wrote:

Interface Builder shows that this control is an NSScrollView. Repeatedly
clicking on it does not drill down any further; NSScrollView is the end of
the line. The class is never shown as NSTextView. Check out what happens
if you Control-drag from the app delegate to the supposed NSTextView
control:

You need to Control-drag to a region in the NSTextView that conceptually represents a first line of text (somewhere near the top) if it's empty, or to the visible text if it's not, to select the textView instead of the scrollView.


Repeatedly clicking on it does drill down (there's only two classes), but again you need to click on the text region or the 'top line' if there's no text visible. If you Control-Shift-click it you can see and select from the window's view hierarchy.


_______________________________________________

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: 
 >How do you set the text in an NSTextView? (From: G S <email@hidden>)
 >Re: How do you set the text in an NSTextView? (From: Jens Alfke <email@hidden>)
 >Re: How do you set the text in an NSTextView? (From: G S <email@hidden>)

  • Prev by Date: Re: Program crashed after edit values at NSTableView
  • Next by Date: Re: NSBrowser dragging
  • Previous by thread: Re: How do you set the text in an NSTextView?
  • Next by thread: Re: How do you set the text in an NSTextView?
  • Index(es):
    • Date
    • Thread