开发者

Populating an NSBrowser (Cocoa OSX)

开发者 https://www.devze.com 2022-12-28 07:30 出处:网络
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 NSBrow

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

精彩评论

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