Hello, I have implemented a custom view as the documentview of a scrollview. I have also subclassed the scrollview's contentview, so my documentview is always centered in the scrollview, for instance when I set the scrollview's magnification for zooming purposes. I have also implemented methods to change the frame size of my custom documentview, eg to set a "page size". My custom documentview and its parent views, all the way up to the scrollview (but excluding the window's contentview) are alle marked as "CA layer" views in IB. At this moment the only purpose for this is to have a nice drop shadow under the documentview.
This has all worked extremely well..., until I added a subview to the documentview. I'm adding the subview in code, not in IB because the subview is using notificationcenter to observe frame changes of it's superview's (ie. the documentview) and then synchronizes it's own frame accordingly. Changing the frame size of the documentview still works, and it also triggers the subview to resize, but it only seems to work as long as I don't resize the document window. When I resize the window and then change the customview's frame, things seem to be firing off OK at first, but on a next iteration 'something' seems to set my documentview's framesize back to (0, 0), which of course results in both views becoming invisible. I'm guessing this could be some kind of layout issue with the subview playing its role, but I really haven't got much experience with view hierarchy, so I'm hoping someone could jump in with some advise. Thank you, -- Luc Van Bogaert
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com