Re: Centering an NSImageView in NSScrollView (again)
Re: Centering an NSImageView in NSScrollView (again)
- Subject: Re: Centering an NSImageView in NSScrollView (again)
- From: Brock Brandenberg <email@hidden>
- Date: Sun, 03 Nov 2002 18:51:05 -0600
I've posted a summary of a technique for subclassing NSClipView to provide a
centered clipping view that works in all scrolling conditions and does not
require the bounds of the subview to be padded to fake-out the enclosing
scroll view.
http://bergdesign.com/missing_cocoa_docs/
I'm sure there are a few ways to simplify the code, so if any of the
veterans have any suggestions for getting away with a category or using
notifications from the NSScrollView, please feel free to share them. I'd
like to fine tune the solution and post the result on Cocoa Dev Central when
everyone's content with it.
Thanks,
Brock Brandenberg
----- industrial design @ www.bergdesign.com ------
_______________________________________________
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.