• 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
Re: [self frame].size.width reporting incorrectly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [self frame].size.width reporting incorrectly
      • From: "Paul Sanders" <email@hidden>
References: 
 >[self frame].size.width reporting incorrectly (From: PCWiz <email@hidden>)
 >Re: [self frame].size.width reporting incorrectly (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: programatically updating UI for NSArrayContoller/NSTableView combo
  • Next by Date: Re: if statement causing 32 Byte leak?
  • Previous by thread: Re: [self frame].size.width reporting incorrectly
  • Next by thread: Re: [self frame].size.width reporting incorrectly
  • Index(es):
    • Date
    • Thread