Re: [self frame].size.width reporting incorrectly
Re: [self frame].size.width reporting incorrectly
- Subject: Re: [self frame].size.width reporting incorrectly
- From: PCWiz <email@hidden>
- Date: Sun, 10 Jan 2010 10:21:06 -0700
Yep, its definitely the correct text field. Well there are many NSTextFields on the screen (each in a collection view item) and all of them resize in unison when the window is resized. It still is reporting 185 as the width. e.g.:
0x20046df80 Str: "“60 Unique 404 Error Pages” http://is.gd/5X43e (via @bluefaqs)", Frame: {{73, 12}, {185, 36}}
Pretty stumped here. The only workaround that works is just getting the size of the window, and approximating the size of the text field relative to the window, but that's hardly accurate.
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-09, at 11:09 PM, Joar Wingfors wrote:
> NSLog(@"%p Str: \"%@\", Frame: %@", self, [self stringValue], NSStringFromRect([self frame]));
_______________________________________________
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