• 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
Runaway NSTextView bounds height
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Runaway NSTextView bounds height


  • Subject: Runaway NSTextView bounds height
  • From: Michael Hanna <email@hidden>
  • Date: Sun, 11 Jul 2004 13:17:27 -0400

For some reason the value the adjustedHeight reports size goes huge
when resizing the window(the window actually doesn't grow as large is
it reports it does), resulting in the font increasing in size
exponentially, much larger than the NSTextView. Doesn't happen when I
comment-out the errant line(marked).

any ideas would be appreciated.
Michael


- (void)windowDidResize:(NSNotification *)notification {

float adjustedHeight = [clockView bounds].size.height * 0.8;
NSLog(@"adjusted height:%f",adjustedHeight);

timerFont = [NSFont userFontOfSize:adjustedHeight];// causes the size
issue
[clockView setFont:timerFont];
NSLog(@"resize");

}


/* output */

2004-07-11 13:12:01.459 NiceTimer[13386] updatemywindow.
2004-07-11 13:12:01.660 NiceTimer[13386] updatemywindow.
2004-07-11 13:12:01.863 NiceTimer[13386] updatemywindow.
2004-07-11 13:12:02.064 NiceTimer[13386] updatemywindow.
2004-07-11 13:12:02.274 NiceTimer[13386] adjusted height:233.600006
2004-07-11 13:12:02.274 NiceTimer[13386] resize
2004-07-11 13:12:02.310 NiceTimer[13386] adjusted height:674.400024
2004-07-11 13:12:02.310 NiceTimer[13386] resize
2004-07-11 13:12:02.454 NiceTimer[13386] adjusted height:5177.600098
2004-07-11 13:12:02.454 NiceTimer[13386] resize
2004-07-11 13:12:02.477 NiceTimer[13386] adjusted height:39769.601562
2004-07-11 13:12:02.477 NiceTimer[13386] resize
2004-07-11 13:12:02.524 NiceTimer[13386] adjusted height:305429.593750
2004-07-11 13:12:02.525 NiceTimer[13386] resize
2004-07-11 13:12:02.552 NiceTimer[13386] adjusted height:2345704.000000
2004-07-11 13:12:02.553 NiceTimer[13386] resize
2004-07-11 13:12:02.575 NiceTimer[13386] adjusted height:6755629.500000
2004-07-11 13:12:02.577 NiceTimer[13386] resize
2004-07-11 13:12:02.638 NiceTimer[13386] adjusted height:6485405.000000
2004-07-11 13:12:02.639 NiceTimer[13386] resize
2004-07-11 13:12:02.664 NiceTimer[13386] adjusted height:6225989.500000
2004-07-11 13:12:02.665 NiceTimer[13386] resize
2004-07-11 13:12:02.689 NiceTimer[13386] adjusted height:5976950.500000
2004-07-11 13:12:02.701 NiceTimer[13386] resize
2004-07-11 13:12:02.723 NiceTimer[13386] adjusted height:5737873.000000
2004-07-11 13:12:02.725 NiceTimer[13386] resize
2004-07-11 13:12:02.751 NiceTimer[13386] adjusted height:5508359.000000
2004-07-11 13:12:02.752 NiceTimer[13386] resize
2004-07-11 13:12:02.775 NiceTimer[13386] adjusted height:5288025.000000
2004-07-11 13:12:02.776 NiceTimer[13386] resize
2004-07-11 13:12:02.821 NiceTimer[13386] adjusted height:5076505.000000
2004-07-11 13:12:02.822 NiceTimer[13386] resize
2004-07-11 13:12:02.889 NiceTimer[13386] adjusted height:4873445.000000
2004-07-11 13:12:02.911 NiceTimer[13386] resize
2004-07-11 13:12:03.207 NiceTimer[13386] adjusted height:4678507.000000
2004-07-11 13:12:03.208 NiceTimer[13386] resize
2004-07-11 13:12:03.232 NiceTimer[13386] adjusted height:4491366.500000
2004-07-11 13:12:03.233 NiceTimer[13386] resize
2004-07-11 13:12:03.257 NiceTimer[13386] adjusted height:4311712.000000
2004-07-11 13:12:03.258 NiceTimer[13386] resize
2004-07-11 13:12:03.279 NiceTimer[13386] adjusted height:4139244.750000
2004-07-11 13:12:03.280 NiceTimer[13386] resize
2004-07-11 13:12:03.302 NiceTimer[13386] adjusted height:7947349.000000
2004-07-11 13:12:03.306 NiceTimer[13386] resize
2004-07-11 13:12:03.348 NiceTimer[13386] adjusted height:7629455.000000
2004-07-11 13:12:03.350 NiceTimer[13386] resize
2004-07-11 13:12:03.374 NiceTimer[13386] adjusted height:7324277.500000
2004-07-11 13:12:03.375 NiceTimer[13386] resize
2004-07-11 13:12:03.395 NiceTimer[13386] adjusted height:7031307.000000
2004-07-11 13:12:03.396 NiceTimer[13386] resize
2004-07-11 13:12:03.446 NiceTimer[13386] adjusted height:6750054.500000
2004-07-11 13:12:03.447 NiceTimer[13386] resize
2004-07-11 13:12:03.588 NiceTimer[13386] updatemywindow.
2004-07-11 13:12:03.889 NiceTimer[13386] got here startstop 0
2004-07-11 13:12:03.890 NiceTimer[13386] got here startstop 1
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Runaway NSTextView bounds height
      • From: Daniel Todd Currie <email@hidden>
  • Prev by Date: Re: A String of Problems
  • Next by Date: No methods in class recognized not even initializer?
  • Previous by thread: Re: Hot folder howto ?
  • Next by thread: Re: Runaway NSTextView bounds height
  • Index(es):
    • Date
    • Thread