On 9 jan 2010, at 21.21, PCWiz wrote:

> 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.


Are you sure that you're logging the width of the correct text field? Try again 
using this log statement:

        NSLog(@"%p Str: \"%...@\", Frame: %@", self, [self stringValue], 
NSStringFromRect([self frame]));

j o a r


_______________________________________________

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