Re: Problem with bound text field in accessory panel
Re: Problem with bound text field in accessory panel
- Subject: Re: Problem with bound text field in accessory panel
- From: Ken Thomases <email@hidden>
- Date: Wed, 11 May 2011 21:45:14 -0500
On May 11, 2011, at 8:26 PM, Gideon King wrote:
> Hi, I have a text field which is used in a save panel accessory when exporting files from my program. It is bound to the user defaults, and has continuous updating of values turned on so that if the user presses Return to complete the save operation, I still have the current value even though the text field end editing is bypassed.
>
> The problem is that if the user types in the text field, and presses Return to export their file, and then goes to export again, the text field is displayed blank. If they click in the text field, it displays the correct value, but if they click in another text field or tab out of the field, it goes blank again. I'm guessing that for some reason the field editor knows the value but the cell doesn't.
>
> It doesn't seem to affect the values being stored in the user defaults, but is very disconcerting for the user.
>
> Has anyone seen this before? Is there a known workaround?
Just a guess: does the value end up having an embedded newline character in it? Could it be that the text is scrolled up out of view and you're only seeing the second line, which is blank?
Regards,
Ken
_______________________________________________
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