• 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: Cocoa-dev Digest, Vol 16, Issue 87
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 16, Issue 87


  • Subject: Re: Cocoa-dev Digest, Vol 16, Issue 87
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Tue, 17 Sep 2019 10:04:14 +0200

>
> The bounds origin is the origin of the coordinate system for sublayers of
> that layer, and thus changing the bounds origin moves sublayers around.

Thanks a lot for the insight.

Just out of curiosity (or for fellow developers):
I have just read up about the bounds property in the NSView documentation.
It says there that bounds defines the view's rectangle "in its own coordinate
system".
If that were the case, then ‒ by definition! - the origin of bounds is always
0,0,
and it does not make any mathematical sense to set it to any other value.
In fact, it does not even make sense to expose the origin as a value.


So, yes, I am now using position and set the gravity to Resize.


Best regards, Gabriel


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Cocoa-dev Digest, Vol 16, Issue 87
      • From: Mike Abdullah via Cocoa-dev <email@hidden>
  • Prev by Date: Screensaver icon ?
  • Next by Date: Re: Cocoa-dev Digest, Vol 16, Issue 87
  • Previous by thread: Re: Screensaver icon ?
  • Next by thread: Re: Cocoa-dev Digest, Vol 16, Issue 87
  • Index(es):
    • Date
    • Thread