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

Re: NSTextView binding with CoreData


  • Subject: Re: NSTextView binding with CoreData
  • From: mmalc crawford <email@hidden>
  • Date: Tue, 31 Jul 2007 07:25:06 -0700


On Jul 31, 2007, at 5:13 AM, Michael Fey wrote:

While the NSTextView will not accept NSString data, it will accept NSAttributedString data.

NSTerxtView does work with NSString objects -- use the 'value' binding (see <http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSTextView.html >)...


we wrote a "StringToAttribStringTransformer" that is a subclass of NSValueTransformer

...this is therefore unnecessary.
(The 'value' binding "is only available when the NSTextView is configured to display using as a single font", but since you're throwing away any formatting information in the transformation, this shouldn't really matter.)


mmalc

_______________________________________________

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 binding with CoreData
      • From: Michael Fey <email@hidden>
References: 
 >NSTextView binding with CoreData (From: Nathan Gilmore <email@hidden>)
 >Re: NSTextView binding with CoreData (From: mmalc crawford <email@hidden>)
 >Re: NSTextView binding with CoreData (From: Michael Fey <email@hidden>)

  • Prev by Date: Re: Quickest Drawing Method
  • Next by Date: Re: Moveable/Resizable "Box" views and blurry frame
  • Previous by thread: Re: NSTextView binding with CoreData
  • Next by thread: Re: NSTextView binding with CoreData
  • Index(es):
    • Date
    • Thread