[self frame].size.width reporting incorrectly
[self frame].size.width reporting incorrectly
- Subject: [self frame].size.width reporting incorrectly
- From: PCWiz <email@hidden>
- Date: Sat, 9 Jan 2010 22:21:25 -0700
I'm using NSLog(@"%f", [self frame].size.width); from within my NSTextField subclass to check the width of the text field (pretty standard stuff). But for some reason, its reporting incorrectly. See this video to see what I mean:
http://img191.imageshack.us/img191/2460/screenflow.mp4
I have it NSLogging the width when the size of the text field changes (multiple text fields in this case, as you can see from the video. There is a text field inside each "bubble"). You can visibly see that the width of the text fields are changing, yet it still reports the same width (185.0). This seems to be pretty basic stuff, is there something I'm missing here?
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
_______________________________________________
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