Re: Hey, NSClipView, Cut it out!
Re: Hey, NSClipView, Cut it out!
- Subject: Re: Hey, NSClipView, Cut it out!
- From: Herr Witten <email@hidden>
- Date: Fri, 30 Jul 2004 13:18:00 -0400
Thanks for the reply, but I need something more spectacular than simply
putting it in the corner. Besides. I would like to have freedom for
future uses. I think I actually may have some code that will do what I
want, and I'll post it if I find it.
On Jul 30, 2004, at 12:52 PM, John Pannell wrote:
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.