Re: setBoundsSize problem - help needed
Re: setBoundsSize problem - help needed
- Subject: Re: setBoundsSize problem - help needed
- From: Matt Neuburg <email@hidden>
- Date: Thu, 27 Jul 2006 08:27:29 -0700
- Thread-topic: setBoundsSize problem - help needed
On Thu, 27 Jul 2006 09:43:29 -0400, "Alan Smith" <email@hidden>
said:
> NSLog(@"%i", size.height);
>When I run this code I get huge numbers in the output:
>
>1079033856 the first time and,
>1077542912 the second time.
>
>Obviously there is something very wrong.
Sure - what's wrong is your NSLog command: you're saying "%i", but
size.height is not an integer. Read up on format strings:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/Articles/
formatSpecifiers.html>
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden