Re: Accepting current edited text field contents
Re: Accepting current edited text field contents
- Subject: Re: Accepting current edited text field contents
- From: Jonathan Taylor <email@hidden>
- Date: Sat, 05 Mar 2011 14:05:13 +0000
Thanks again for your help, and thanks in particular for your follow-up email, which was a great help in working out the bindings (it was indeed the first time I'd done anything like that!). I have a couple of follow-up questions if you don't mind.
Question 1 - you state "Nothing in any of this will or should have any effect on what's selected in the text field where editing was in progress", but if we are both talking about the same thing then I don't think that's happening for me. The screenshots before and after clicking the "send" button (which triggers a commit) are shown here:
www.dur.ac.uk/j.m.taylor/before_send.png
www.dur.ac.uk/j.m.taylor/after_send.png
The text field has lost focus. Would you expect this to happen? Does this suggest that I've slipped up somewhere in how I have wired everything up together or something?
Question 2 - the method you have described seems to be very much tied to a single NSObjectController for the entire window, and indeed IB just seems to offer the option to bind to "Object Controller", without specifying "which one". In that case, is there any way of achieving neat group-based behaviour for the following window?
www.dur.ac.uk/j.m.taylor/grouped.png
Here there are two separate categories of editable fields. If "send" is clicked then it is important that any edits to the stage command field are committed, but I think it would make more sense if ongoing edits to the "stage limits" fields are NOT committed if "send" is clicked (they are completely irrelevant). n.b. the window does not close when "send" is clicked. Is there any way of achieving this?
Cheers
Jonny_______________________________________________
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