• 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: View hierarchy, documentation, and origin location.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: View hierarchy, documentation, and origin location.


  • Subject: Re: View hierarchy, documentation, and origin location.
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 23 Sep 2013 19:05:02 -0700

On Mon, Sep 23, 2013, at 06:20 PM, Peter Teeson wrote:
>
> On 2013-09-23, at 1:36 PM, Kyle Sluder wrote:
> > What’s _theMatrix’s frame?
> Here once again is the code I posted

That's not what I asked. I asked for the frame.

> It's values happen to be 40.0 40.0 500.0 500.0

Thank you for answering my question.

>
> > It could either have an origin that puts it at the top, or it could draw
> > its content in its upper-left and have a size that fills the superview, or its superview could return YES from -isFlipped.
> There is no superview of a window's content view - it is the root of the
> view hierarchy.
>
> >> The default location is stated to be lower left.
> > See -[NSView isFlipped].
> Of course I read the docn and know about this.

And I know that the default location is the lower left. But it seemed
worth mentioning what affected "the default."

>
> > Flippedness does not cascade; every NSView’s bounds coordinate system is independent.
> I know that.
> > If a view returns NO from -isFlipped, then drawing at (0,0) in that view’s bounds
> > will always draw at the lower left of that view, regardless of whether any ancestors return YES from -isFlipped.
> No it doesn't! The code I posted draws from the top left.

Did you write NSMatrix? Then how do you know it's doing its own drawing
at (0,0)?

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: View hierarchy, documentation, and origin location.
      • From: Peter Teeson <email@hidden>
References: 
 >View hierarchy, documentation, and origin location. (From: Peter Teeson <email@hidden>)
 >Re: View hierarchy, documentation, and origin location. (From: Kyle Sluder <email@hidden>)
 >Re: View hierarchy, documentation, and origin location. (From: Peter Teeson <email@hidden>)

  • Prev by Date: Re: View hierarchy, documentation, and origin location.
  • Next by Date: Re: Cocoa-dev Digest, Vol 10, Issue 602
  • Previous by thread: Re: View hierarchy, documentation, and origin location.
  • Next by thread: Re: View hierarchy, documentation, and origin location.
  • Index(es):
    • Date
    • Thread