Mutable/non-mutable bindings in NSTextView
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