When to relayout view in NSScrollView?
When to relayout view in NSScrollView?
- Subject: When to relayout view in NSScrollView?
- From: Allan Odgaard <email@hidden>
- Date: Sun, 29 Feb 2004 16:16:38 +0100
I have a custom view encapsulated into a scroll view. I have never been
sure about when and how to layout my contents.
Currently I implement 'viewDidMoveToSuperview' and do my (initial)
layout there. But I also need to re-layout when the frame of the scroll
view changes -- so I add myself as an observer of
NSViewFrameDidChangeNotification with object being [self
enclosingScrollView].
Is this the proper procedure?
How about removing the observer again?
_______________________________________________
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.