문제

I have an NSTableView that is populating with my data source.

My data model has a URL to an image.

I would like to display an image next to some text in every cell of my NSTableView. Basically like a twitter client, image on the left, with some text on the right.

I am not sure how to do this Cocoa? I am familiar with the process in Cocoa-Touch (by subclassing UITableViewCell).

도움이 되었습니까?

해결책

You can create a frame on each cell, and draw a picture in that. Refer here:

http://blog.webscale.co.in/?p=284

다른 팁

You should drag NSImageCell onto the column you want your image to be displayed. Then adjust the value of the image via image cell bindings pane.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top