Re: Strange result with NSView's convertPoint:toView:

2010-11-13 Thread Ken Ferry
Hi Eric, I don't entirely follow this question, but I suspect I know what you're missing: the frame of a view is its location in the coordinate system of its superview. Its bounds is its location in its own coordinate system. So this is okay [superview convertRect:[view frame]... And this is

Re: Strange result with NSView's convertPoint:toView:

2010-11-12 Thread Eric Gorr
On Nov 12, 2010, at 11:47 AM, Eric Gorr wrote: > I have changed the contentView of my NSWindow to be a NSView which return YES > for isFlipped. > > If I place a NSButton in the contentView of a window, I can do the following: > > NSRect r = [view frame]; >NSPointorigin;

Strange result with NSView's convertPoint:toView:

2010-11-12 Thread Eric Gorr
I have changed the contentView of my NSWindow to be a NSView which return YES for isFlipped. If I place a NSButton in the contentView of a window, I can do the following: NSRect r = [view frame]; NSPoint origin; origin = [view convertPoint:NSZeroPoint toView:[[view wind