Re: Tricky binding and continuous update problem
Re: Tricky binding and continuous update problem
- Subject: Re: Tricky binding and continuous update problem
- From: Chris Idou <email@hidden>
- Date: Tue, 6 Apr 2010 18:30:59 -0700 (PDT)
How does it wreak havoc with undo? Undo seems to work still. In something like TextExpander, you change the textfield where your expansion goes, and the table in the left hand side changes as you type. That's what I was aiming for.
But I've found why it suddenly stopped working. I stumbled upon the URL below. Apparently the "Automatically rearrange content" for the NSArrayController makes this all go awry. It seems like I can choose between auto rearrange content, or continuously update values, but not both. Don't know if this is a bug or if there is some reason for it.
http://stackoverflow.com/questions/1028700/core-data-strange-bindings-error-on-re-opening-a-document-help
----- Original Message ----
From: Kyle Sluder <email@hidden>
To: Chris Idou <email@hidden>
Cc: Jerry Krinock <email@hidden>; email@hidden
Sent: Wed, 7 April, 2010 11:21:28 AM
Subject: Re: Tricky binding and continuous update problem
On Tue, Apr 6, 2010 at 5:28 PM, Chris Idou <email@hidden> wrote:
> I don't know, it seems to me like having everything always in synch is nicer. The user can see immediately how changing one field is affecting the other. And it used to work.
That will wreak havoc with Undo. Continuously updating values is not
pretty, and it's not how text fields behave on the Mac. Rich text does
behave as you describe, but you can't use bindings for that.
Avoid fighting the framework. ;-)
--Kyle Sluder
_______________________________________________
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