• 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
what does -[NSView convertRect:toView:] do with nil view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

what does -[NSView convertRect:toView:] do with nil view?


  • Subject: what does -[NSView convertRect:toView:] do with nil view?
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Sat, 17 May 2008 13:15:29 -0700

The API documentation for -[NSView convertRect:toView:] reads identically to the documentation for -[NSView convertRect:fromView:] when a nil parameter is passed for the view:

"If aView is nil, this method instead converts from window base coordinates. Otherwise, both aView and the receiver must belong to the same NSWindow object."

I've always assumed that -[someView convertRect:aRect toView:nil] would convert a rect /from/ someView's coordinate system /to/ the view's window's coordinate system, but that doesn't seem consistent with the statement above.

ISTR filing a bug or sending feedback on this a long time ago, but just noticed that it still doesn't make sense to me. Can anyone clarify this?

thanks,
Adam



_______________________________________________

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: what does -[NSView convertRect:toView:] do with nil view?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Set view in bottom right corner of NSTableView
  • Next by Date: Re: The challenge for Cocoa's on-line documentation
  • Previous by thread: Cocoa Developers
  • Next by thread: Re: what does -[NSView convertRect:toView:] do with nil view?
  • Index(es):
    • Date
    • Thread