FROM : Oliver Cameron
DATE : Sun Dec 12 21:38:59 2004
Hey guys,
I'm trying to make an app with a NSBrowser in the UI. And I am just
plain stumped as to how to make this work. Basically, at first I went
with a NSOutlineView, so I'm trying to migrate it over, as they sound
like or should use the same type of system.
For example, in a NSTableView datasource, you set its data by
numberOfRows and objectValueForTableColumn. I noticed there was a
similar numberOfRows method for NSBrowser, and I fed it the same data
as the NSOutlineView. I noticed in the example of SimpleBrowser the
method willDisplayCell. I am guessing this is similar to the
objectValueForTableColumn, but I just don't *get* how it works at all,
how to set the data in the NSBrowser etc. Any simpler examples than the
AppKit example would really help.
Thanks,
Oliver
DATE : Sun Dec 12 21:38:59 2004
Hey guys,
I'm trying to make an app with a NSBrowser in the UI. And I am just
plain stumped as to how to make this work. Basically, at first I went
with a NSOutlineView, so I'm trying to migrate it over, as they sound
like or should use the same type of system.
For example, in a NSTableView datasource, you set its data by
numberOfRows and objectValueForTableColumn. I noticed there was a
similar numberOfRows method for NSBrowser, and I fed it the same data
as the NSOutlineView. I noticed in the example of SimpleBrowser the
method willDisplayCell. I am guessing this is similar to the
objectValueForTableColumn, but I just don't *get* how it works at all,
how to set the data in the NSBrowser etc. Any simpler examples than the
AppKit example would really help.
Thanks,
Oliver
| Related mails | Author | Date |
|---|---|---|
| Oliver Cameron | Dec 12, 21:38 | |
| Oliver Cameron | Dec 12, 22:14 | |
| Andreas Höschler | Dec 12, 22:55 |






Cocoa mail archive

