Re: Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure
Re: Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure
- Subject: Re: Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure
- From: "Mike R. Manzano" <email@hidden>
- Date: Mon, 10 Mar 2008 22:10:11 -0700
Okay, I think I've found the problem, but I'm not sure why it's a
problem. I had two NSArrayControllers bound to the same
NSManagedContext. I had one text view bound to the selection in the
first controller, and another text view bound to the second array
controller. I removed one of the array controllers and instead bound
both text views to the remaining one. Then, everything worked.
Is it bad to have more than one array controller bound to the same
NSManagedContext?
Mike
On Mar 10, 2008, at 1:20 AM, Ben Lachman wrote:
Is there any reason you can't write a NSString to NSData two-way
value transformer? It would probably be more bulletproof than
relying on something that doesn't work consistently.
->Ben
--
Ben Lachman
Acacia Tree Software
http://acaciatreesoftware.com
email@hidden
740.590.0009
On Mar 10, 2008, at 3:26 AM, Mike R. Manzano wrote:
Here's an odd one: I have an NSTextView bound to an attribute of a
Core Data entity of type "binary". Works fine.
However, if I go into IB and check "Continuously Updates Value" on
the NSTextView's bindings settings, subsequent runs of the program
tell me that it "Cannot create NSData from object of class
NSCFString".
It gets stranger. If I turn Continuously Updates Value" off, the
program still fails with the same error. I actually have to unbind
the text view, run the program, quit it, then re-bind with
"Continuously Updates Value" unselected to "fix" it again.
I am building this program on Xcode 3.1 (beta), compiling with GC,
if that makes a difference.
I'm at the end of my rope on trying to figure this one out. Can
anyone help?
Thanks,
Mike
_______________________________________________
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
_______________________________________________
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