Re: strange horizontal line in scroll view
Re: strange horizontal line in scroll view
- Subject: Re: strange horizontal line in scroll view
- From: Graham Cox <email@hidden>
- Date: Sun, 1 Aug 2010 22:09:32 +1000
On 01/08/2010, at 9:28 PM, Nick Rogers wrote:
> Please take a look at the attached image.
>
> Please suggest what I am doing wrong or need to do.
This is a really terrible way to make a hex viewer. Consider using NSTextView or just use a custom view (I think I've seen a 3rd party open source hex editor view "out there" somewhere also).
That said it should work (with very poor performance). You say this is a NSMatrix subclass. Are you drawing a gradient background? If so, a typical error is to fill the <rect> passed to -drawRect: with the gradient instead of filling the view's bounds. The <rect> parameter is the area needing update, not the whole view.
--Graham
_______________________________________________
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