NSMatrix setOrigin issue?
NSMatrix setOrigin issue?
- Subject: NSMatrix setOrigin issue?
- From: Richard Salvatierra <email@hidden>
- Date: Thu, 27 Jul 2006 13:17:55 -0400
How can I center the NSMatrix (vertically) within the width of an
NSScrollView?
I have an NSMatrix (subclass) in a NSScrollView. I am doing a
scaling routine to the cells adjusting size and spacing. I want to
center the matrix within the scrollview. I can't seem to change the
origin of the matrix using [self setFrameOrigin: newOrigin]. If I
change the origin of the it's superview, it appears to be placed
correctly, but the background of the scrollView does not fill
correctly. It fills starting with the origin point.
Thanks,
Rich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden