Hello list,

I have an NSTextField that has its Value attribute bound to an NSString object. When I update the NSString object from another place in my code, the value of my NSTextField updates appropriately (that's Bindings for you).

However, I'm trying to call sizeToFit on that NSTextField after it updates its value. I tried using the controlTextDidChange: delegate method, but it doesn't seem to fire when the control value is updated from bindings—only when the control is manipulated directly. I also tried adding code directly in a custom setter method for the NSString, but the value of the NSTextField doesn't seem to update until after the setter method completes (which makes sense).

Is there a way to fire that delegate method when the value of a control is updated via bindings, or is there another way I should be approaching this? Thanks in advance for your help.

-Chad Bailey_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to