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
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;
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