Hi, On 30 Jan 2011, at 06:38, Todd Heberlein wrote:
> Is there an easy way to do this? Or should I make sure my document view is > always at least as large as the content view and then just center my drawing > inside my document view? Here's a sub-class of NSClipView that does that. I have to admit I don't quite remember where I got the pointers from (probably CocoaDev).
SICenteringClipView.h
Description: Binary data
SICenteringClipView.m
Description: Binary data
Daniel.
_______________________________________________ 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 arch...@mail-archive.com