what does -[NSView convertRect:toView:] do with nil view?
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