• 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: Troy Stephens <email@hidden>
  • Date: Mon, 27 Jun 2005 10:01:14 -0700

I'm not quite sure what you mean in this follow-up post, or what the particular significance of the "0.92" multiplier is, but I think what you've forgotten to account for is that the NSTableView is larger than, and clipped by, its enclosing NSScrollView / NSClipView.

What you want is probably [theTableView visibleRect], which expresses the size of the visible portion of the NSTableView, in the NSTableView's bounds coordinate system.

--
Troy Stephens
Cocoa Frameworks
Apple Computer, Inc.

On Jun 27, 2005, at 9:38 AM, Theodore H. Smith wrote:
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


References: 
 >Re: getting the bounds as seen by the user (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: Getting NSMetadataQuery to sort properly
  • Next by Date: NSXMLParser trouble
  • Previous by thread: Re: getting the bounds as seen by the user
  • Next by thread: NSXMLParser trouble
  • Index(es):
    • Date
    • Thread