strange horizontal line in scroll view
strange horizontal line in scroll view
- Subject: strange horizontal line in scroll view
- From: Nick Rogers <email@hidden>
- Date: Sun, 01 Aug 2010 16:58:30 +0530
Hi,
I have three matrices (all same sub class of NSMatrix, having prototype as a subclass of NSTextFieldCell), initially inited to have 1 row each and 1, 16 and 16 columns respectively. I'm trying to make a simple hex viewer using matrix instead of complex custom views for display.
Then I add rows (typically 256 or so) to all three matrices using addRow to accommodate the number of 16 byte rows in the to be displayed disk (iPod) sector.
The three matrices are to be added as subviews to a vertical split view (created in IB).
Then I send - sizeToCells and setScrollable:YES to the 3 matrices.
Then I send setFrameSize to split view keeping the width same, but increasing the height to accommodate the matrix height (matrix height + 4).
Then I add each matrix as sub view of the split view, the split view is a sub view of an scroll view (created in IB).
When I scroll down to a particular location in scroll view, I see this horizontal line (across all three matrices columns) with the upper area having a dark shade and lower area being brighter, both slowly fades.
This line repeats many times in 256 rows, spaced at constant interval.
Please take a look at the attached image.
Please suggest what I am doing wrong or need to do.
Wishes,
Nick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden