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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to