Re: setBoundsSize problem - help needed
Re: setBoundsSize problem - help needed
- Subject: Re: setBoundsSize problem - help needed
- From: "Sean McBride" <email@hidden>
- Date: Thu, 27 Jul 2006 10:54:25 -0400
- Organization: Rogue Research
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:
This email sent to email@hidden