• 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: Matt Neuburg <email@hidden>
  • Date: Thu, 27 Jul 2006 08:27:29 -0700
  • Thread-topic: 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

  • Prev by Date: Re: Show/Hide columns in NSTableView?
  • Next by Date: connect() returns Refused Connection Error
  • Previous by thread: Re: setBoundsSize problem - help needed
  • Next by thread: How do I size a NSView to fit an NSImage?
  • Index(es):
    • Date
    • Thread