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 PROTECTED]




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to