Re: Hey, NSClipView, Cut it out!
Re: Hey, NSClipView, Cut it out!
- Subject: Re: Hey, NSClipView, Cut it out!
- From: John Pannell <email@hidden>
- Date: Fri, 30 Jul 2004 10:52:28 -0600
You could make a subclass of you document view (you don't mention what
you are viewing) that returns YES to -isFlipped. Cocoa's default
coordinate system is anchored in the lower left corner, while many
people's brains are anchored in the upper left. NSView (and its
subclasses) provide the -isFlipped method to tell the view to work like
my brain.
Look at NSView's documentation for -isFlipped for more info...
HTH-
John
On Jul 30, 2004, at 10:12 AM, Herr Witten wrote:
I want to reposition the document view of an NSScrollView. However,
when I change the frame of the document view, it remains in the lower
left corner of the scroll view, yet even the documentRect method
returns the correct frame rect. What can I do besides replacing
NSClipView with a regular NSView as the content view? Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.