• 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
NSBrowser not setting column titles correctly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBrowser not setting column titles correctly?


  • Subject: NSBrowser not setting column titles correctly?
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 5 Oct 2003 15:29:37 -0700

I've got an application which is using NSBrowser to display data. The browser's delegate is a so-called "active" delegate; that is, it uses -browser:createRowsForColumn:inMatrix: to set up each column. In this delegate method, I call the sender browser's -setTitle:ofColumn: method to make a custom column title.

This works great for newly created columns that have just been populated with data. However, whenever the column is reloaded from memory (which happens if I click on some other tree in the column to the left of the current column, and then click on the first tree again), the browser delegate runs again, but the call to -setTitle:ofColumn: is ignored, and the default column title is used. I have tested this with GDB and I know the message is being sent.

Here's what I've tried that didn't work:
1. Calling [sender setNeedsDisplay:YES] on the browser "sender" after setting the title of the column
2. Implementing the delegate method -browser:titleOfColumn:, which appears to be useless, as it is only called once when NSBrowser is setting itself up (it is never called when a new column is opened)

Am I missing something here, and if so, what am I missing? Has anyone gotten this to work, and if so, what did you do?

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: Font Manager Problem
  • Next by Date: Re: Can NSTableView have different sized rows?
  • Previous by thread: Re: Application launch problems
  • Next by thread: Plugin Framework
  • Index(es):
    • Date
    • Thread