• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bound NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: CoreFoundation object over-retained during finalization
  • Next by Date: NSView, CALayer, setNeedsDisplay
  • Previous by thread: UITextView making containing UIScrollView scroll
  • Next by thread: NSView, CALayer, setNeedsDisplay
  • Index(es):
    • Date
    • Thread