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

Re: Odd binding issue


  • Subject: Re: Odd binding issue
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 12 Mar 2004 20:55:02 -0500

sorry, but this is not correct.

value expects an NSString
data expects an NSData

value is available only when it is a single font text view

I'm not sure why nobody will believe me on this.

On Mar 12, 2004, at 11:42 AM, mmalcolm crawford wrote:

On Mar 12, 2004, at 7:13 AM, Timothy Reaves wrote:

Well, I had originally used @"data", but that does not work. [...]
So neither value or data works. The key string DOES work, just not
that first time. As I (tried) stated, I have two other NSTextView
bound with string that do not display this behavior.


NSTextView's 'value' binding expects an NSData object. You can bind an NSString to an NSTextView's 'value' binding by turning off the view's "Multiple fonts allowed" attribute -- the 'value' binding then appears in the Bindings Inspector. Note that if you had previously made a binding to data, it will persist (it shows up as a Parameter binding at the bottom of the Bindings Inspector) -- you must unbind it otherwise you'll get a runtime error.

mmalc
_______________________________________________
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.
_______________________________________________
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: Odd binding issue
      • From: mmalcolm crawford <email@hidden>
References: 
 >Odd binding issue (From: T Reaves <email@hidden>)
 >Re: Odd binding issue (From: Scott Anguish <email@hidden>)
 >Re: Odd binding issue (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Odd binding issue
  • Next by Date: Re: Odd binding issue
  • Previous by thread: Re: Odd binding issue
  • Next by thread: Re: Odd binding issue
  • Index(es):
    • Date
    • Thread