|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
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.
Copyright © 2011 Apple Inc. All rights reserved.