• 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: getting the bounds as seen by the user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the bounds as seen by the user


  • Subject: Re: getting the bounds as seen by the user
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Mon, 27 Jun 2005 17:38:15 +0100

Nevermind that last post,

Its actually a bug in Cocoa.

The evidence is obvious.

I try this code:

    int w = (int)(NewSize.size.width * 0.92);

and base my calculations off of that, and everything works fine. (if a little short, 8% short actually).

I try this code:

    int w = (int)(NewSize.size.width);

or even this!

    int w = (int)(NewSize.size.width * 0.99);

and base my calculations off of that, and it all goes very wrong.

Time for me to report a Cocoa bug I think!


--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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


  • Follow-Ups:
    • Re: getting the bounds as seen by the user
      • From: Troy Stephens <email@hidden>
  • Prev by Date: Re: How to get the bounds as seen by the user?
  • Next by Date: Re: How do I create a NSArray of NSString constants?
  • Previous by thread: Re: Convert PICT to NSImage
  • Next by thread: Re: getting the bounds as seen by the user
  • Index(es):
    • Date
    • Thread