• 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
Problem with NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with NSBrowser


  • Subject: Problem with NSBrowser
  • From: john <email@hidden>
  • Date: Wed, 30 Aug 2006 20:21:07 -0400

Hello,

I have a problem with an NSBrowser. It is a 2 column browser with column 0 non-leafs and column 1 leafs. Column 1 discloses specific information of the items in column 0.

An abbreviated version of the problem is: when I click on an item in column 0, which may have 20 items, only the first 3 items in column 1 show up correctly. The remaining 17 items are blank (no icon or text), and they display disclosure triangles since they believe they are not leafs.

When I click on the same item in column 0 a second time, all of column 1 displays correctly. If I click on a blank item in column 1 it singularly displays correctly.

I am overriding the drawInteriorWithFrame:inView: method. The thing that is really eluding me is that if I leave all of my custom code in there but comment out the 2 lines which actually draw (icon and text) and instead call the super's drawInteriorWithFrame:inView:, the cell's string value is blank before the call but correct after the call!

What is the super doing in that method which "magically" gets the stringValue and icon to be correct?

Any ideas? Thanks.

-- John
_______________________________________________
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


  • Prev by Date: subviews question
  • Next by Date: menuForEvent: delay
  • Previous by thread: Re: subviews question
  • Next by thread: menuForEvent: delay
  • Index(es):
    • Date
    • Thread