• 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: moving subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: moving subviews


  • Subject: Re: moving subviews
  • From: Negm-Awad Amin <email@hidden>
  • Date: Tue, 12 Aug 2008 10:26:23 +0200


Am Di,12.08.2008 um 09:49 schrieb Georg Seifert:

 down, and the subview hits the scrollbar, it should stick there.

is there a sane way of achieving this or do I better lock for an other behavior?
You can overwrite the origin-changing methods -setFrame: and - setFrameOrigin: of your document view to do recalculations of your subviews. The visible part of your document view is that one, that is covered by the content view (your superview, an instance of NSClipView). Please read the documentation about scrollviews to get a closer look to its view hierarchy.

Du kannst die Methoden -setFrame: und -setFrameOrigin:, die den Ursprung verändern, überschreiben und dort die Lage deiner Subviews neu berechnen. Den sichtbaren Teil erhältst du als den Teil deines Dokumentenviews, der vom Content-View überdeckt wird. Lese noch einmal die Doku zu Scrollviews. Die Viewhierarchie wird dort genauer beschrieben.


Grüße

Amin Negm-Awad
email@hidden




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >moving subviews (From: Georg Seifert <email@hidden>)

  • Prev by Date: moving subviews
  • Next by Date: Re: NSTextField Bug? Can't be!
  • Previous by thread: moving subviews
  • Next by thread: Re: moving subviews
  • Index(es):
    • Date
    • Thread