Odd binding issue
Odd binding issue
- Subject: Odd binding issue
- From: T Reaves <email@hidden>
- Date: Thu, 11 Mar 2004 22:54:01 -0500
Hello all.
I have a simple app that uses manual bindings. It has several text
fields and text views. One of the text views binds an NSTextView like
so:
// bind itemDescription
[bindingOptions setObject:@"No Description"
forKey:@"NSNullPlaceholder"];
[itemDescription bind:@"string" toObject:itemController
withKeyPath:@"selection.description" options:bindingOptions];
This is not the only NSTextView, nor is it the first one, in this app
to be bound & displayed.
What is happening, however, is that the first time that particular
widget is displayed, the object is displayed in the text view, not the
objects description. Here is what gets displayed: <Item: 0x358970>.
When the next object is selected - and therefore displayed - it is
displayed correctly. I can also then go back to the first object and
it displays correctly. It does not matter which object in the array is
displayed first, always the first one - and only the first one - is
displayed incorrectly.
Any ideas?
_______________________________________________
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.