• 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: Joar Wingfors <email@hidden>
  • Date: Sat, 9 Jan 2010 22:09:35 -0800

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 (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: PCWiz <email@hidden>
References: 
 >[self frame].size.width reporting incorrectly (From: PCWiz <email@hidden>)

  • Prev by Date: Re: Enabling NSZombieEnabled programatically
  • Next by Date: Re: Enabling NSZombieEnabled programatically
  • Previous by thread: [self frame].size.width reporting incorrectly
  • Next by thread: Re: [self frame].size.width reporting incorrectly
  • Index(es):
    • Date
    • Thread