Bound NSTextField
Bound NSTextField
- Subject: Bound NSTextField
- From: Livio Isaia <email@hidden>
- Date: Sat, 12 Mar 2011 19:01:00 +0100
I have some NSTextField in a window bound to a view data, e.g.:
@interface ImageView : NSImageView {
...
}
- (void)setDegrees:(NSNumber *)value;
- (NSNumber *)degrees;
- (void)setImageWidth:(float)value;
- (float)imageWidth;
- (void)setImageHeight:(float)value;
- (float)imageHeight;
...
and in IB:
1) NSTextField bound to degrees
2) NSTextField bound to imageWidth
3) NSTextField bound to imageHeight
(I don't give you the details of bounding beacause it works fine)
The problem is that when imageWidth (or imageHeight) changes the text in
the bound NSTextField is also changed, but appears illegible, as if the
new text was written directly on the old (I mean without previously
deleting the old), while changing degrees the new value is printed normally.
I tried everything I could think to, but didn't fix the problem.
(Changing - "(float)imageWidth;" to "- (NSNumber *)imageWidth;" doesn't
solve the problem.)
Can anybody help me?
Thank you all in advance,
best regards,
livio.
_______________________________________________
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