Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setBoundsSize problem - help needed



On 2006-07-27 10:31, Cameron Hayne said:

>>    NSSize size = [self bounds].size;
>>    NSLog(@"%i", size.height);
>
>The width & height are floats, not integers.

And incase you wonder why gcc did not warn you about this (assuming you
are even using -Wformat), the warning only works for printf/scanf not
NSLog or any other function. :(

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >setBoundsSize problem - help needed (From: "Alan Smith" <email@hidden>)
 >Re: setBoundsSize problem - help needed (From: Cameron Hayne <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.