• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hey, NSClipView, Cut it out!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Hey, NSClipView, Cut it out! (From: Herr Witten <email@hidden>)

  • Prev by Date: Re: New NSImage...
  • Next by Date: [Moderator] Re: [OT] was: Where is NSList? (All Threads)
  • Previous by thread: Hey, NSClipView, Cut it out!
  • Next by thread: Re: Hey, NSClipView, Cut it out!
  • Index(es):
    • Date
    • Thread