Re: Recreating XCode run log behavior in an NSTextView
Re: Recreating XCode run log behavior in an NSTextView
- Subject: Re: Recreating XCode run log behavior in an NSTextView
- From: Shawn Erickson <email@hidden>
- Date: Tue, 18 Sep 2007 09:10:11 -0700
On Sep 18, 2007, at 7:54 AM, Paul Goracke wrote:
Bindings use KVO and you're not notifying the observer of changes.
Try changing your setter to
- (void) setLog:(NSString *) inString
{
[self willChangeValueForKey:@"log"];
[log appendString: [inString stringByAppendingString: @"\n"]];
[self didChangeValueForKey:@"log"];
}
That is only need if he turned off the automatic aspects of KVO since
he is in a method named as expected for the key he is observing.
<http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueObserving/Concepts/AutoVsManual.html#//apple_ref/doc/uid/
20001844-178255>
-Shawn
_______________________________________________
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