• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: strange horizontal line in scroll view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >strange horizontal line in scroll view (From: Nick Rogers <email@hidden>)

  • Prev by Date: strange horizontal line in scroll view
  • Next by Date: Re: Search Kit memory management
  • Previous by thread: strange horizontal line in scroll view
  • Next by thread: Re: strange horizontal line in scroll view
  • Index(es):
    • Date
    • Thread