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

NSTextView binding redisplay


  • Subject: NSTextView binding redisplay
  • From: Steven Spencer <email@hidden>
  • Date: Fri, 30 Apr 2004 00:26:43 +0100

Hello,

I hope someone can help with this issue :

I have a NSTextView bound to the selection of a NSObjectController in Interface Builder. The selection is controlled by a NSTableView whose columns are bound to the arrangedObjects in the object controller. The table view permits single selection only.
(Reason for this strange set-up : The text view can display multiple lines of text whereas the table view can display only a single line).
When the object controller selection changes (via the table view), the text view is updated. Often, the text view doesn't completely draw the string unless the table view is clicked a second time or a different control becomes the first responder.
Is it necessary to send the text view a setNeedsDisplay:YES message each time after its value is set ? I thought this would be done automatically.
If this is indeed the way to go, what's the best method ?

Thanks.

- Steve Spencer
_______________________________________________
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.


  • Prev by Date: Re: Return Code Dilemma
  • Next by Date: Linking problem
  • Previous by thread: Re: Return Code Dilemma
  • Next by thread: favicons
  • Index(es):
    • Date
    • Thread