Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: setBoundsSize problem - help needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.