开发者

Populating an NSBrowser (Cocoa OSX)

I want to make a widget that displays a column of selectable text data. It seems that the NSBrowser is the 开发者_如何学Gobest cocoa object to do this but I cannot figure out how to populate the NSBrowser with any sort of data. I assume I can set the string value of an NsBrowserCell but no where in the documentation can I find where to add a new cell to a column. Am I using the wrong object?


One must define a NSBrowserDelegate and define both ‑browser:willDisplayCell:atRow:column: and ‑browser:numberOfRowsInColumn: or the method ‑browser:createRowsForColumn:inMatrix:. This link is useful:

http://www.cocoabuilder.com/archive/cocoa/31229-nsbrowser-question.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜