• 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: 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.


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

  • Prev by Date: Re: [OT] Time complexity (was: Where is NSList?)
  • Next by Date: Re: NSTableView with imbedded NSComboBoxCell problem
  • Previous by thread: Re: Hey, NSClipView, Cut it out!
  • Next by thread: Errors from debugger
  • Index(es):
    • Date
    • Thread