Re: switching text field between editable and non-editable
Re: switching text field between editable and non-editable
- Subject: Re: switching text field between editable and non-editable
- From: Charles Srstka <email@hidden>
- Date: Wed, 31 May 2017 13:59:22 -0500
> On May 31, 2017, at 1:51 PM, J.E. Schotsman <email@hidden> wrote:
>
> Hello,
>
> I have a hard time achieving what the message title says.
> Depending on user settings I want a text field to be either editable or non-editable.
>
> I’ve tried this:
>
> if makeEditable
> { myTextField.isEditable = false
> myTextField.drawsBackground = false }
> else
> { myTextField.isEditable = true
> myTextField.drawsBackground = true }
>
> Setting the editable property has the desired effect, but setting drawsBackground has no effect.
Does setting its needsDisplay property to true have any effect?
Charles
_______________________________________________
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