• 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: Get screen size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get screen size


  • Subject: Re: Get screen size
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 14 Jan 2002 15:28:24 +0100

Bertrand,

>>>>>> Bertrand Mansion (BM) wrote at Mon, 14 Jan 2002 14:32:27 +0100:
BM> Thanks. It will compile if I take off the *.
BM> But my problem was actually caused by the NSLog :)
BM> Height and Width are expressed as floats. I didn't know.

Yeah, of course all sizes are real numbers.

For logging, it often is easier to use the standard OpenStep functions than
to format the log manually, like

NSLog(@"box: %@, size %@, place
%@",NSStringFromRect(rr),NSStringFromSize(sz),NSStringFromPoint(pt))
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Re: Get screen size (From: Bertrand Mansion <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #11 - 16 msgs
  • Next by Date: Possibly OT
  • Previous by thread: Re: Get screen size
  • Next by thread: PB Lexical Analysis (function popup): How?
  • Index(es):
    • Date
    • Thread