• 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
Mutable/non-mutable bindings in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mutable/non-mutable bindings in NSTextView


  • Subject: Mutable/non-mutable bindings in NSTextView
  • From: David <email@hidden>
  • Date: Fri, 24 Feb 2006 21:24:50 -0600

This would appear to be a simple problem but for some reason can't get it to work.

I am binding to the VALUE of an NSTextView which gives me an NSString in my model class. When a user clicks on a button I wish to clear the contents of the NSTextView. The value binding of NSTextView is a non-mutable string so how do I clear it? Releasing and setting the NSString to empty string is not enough.

And on a side note why is the DATA binding of NSTextView a mutable NSData object? Seems like the bindings should be consistent as far as mutable/non-mutable, no? How does one know if you will get a mutable object from a binding?



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Mutable/non-mutable bindings in NSTextView
      • From: Greg Herlihy <email@hidden>
  • Prev by Date: Re: How to hide system menu bar and the dock bar in cocoa?
  • Next by Date: Re: How to observe and bind (KVO/KVB) to a value generated at runtime...
  • Previous by thread: Mute Other Applications Audio?
  • Next by thread: Re: Mutable/non-mutable bindings in NSTextView
  • Index(es):
    • Date
    • Thread