• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setBoundsSize problem - help needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: hyphenation
  • Next by Date: Re: SetHidden on two objects... Slow to hide
  • Previous by thread: Re: setBoundsSize problem - help needed
  • Next by thread: Re: setBoundsSize problem - help needed
  • Index(es):
    • Date
    • Thread