Re: Binding alignment property of NSTextField
Re: Binding alignment property of NSTextField
- Subject: Re: Binding alignment property of NSTextField
- From: Ken Thomases <email@hidden>
- Date: Sat, 27 Oct 2012 04:58:02 -0500
On Oct 27, 2012, at 4:26 AM, Luc Van Bogaert wrote:
> The textfield alignment is bound to an enum property of the viewcontroller. The strange thing is that, when I create a *new* viewcontroller object from the nib, the textfield alignment is set correctly based on the current enum property value. So, it seems that the binding indeed works, but
>
> when I set the enum property of an existing viewcontroller object to some other value, the textfield alignment is not adjusted accordingly.
This suggests that your are modifying the property in a non-KVO-compliant manner. Are you calling the setter or are you directly changing the instance variable?
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