Populating NSImage with data from an asynchronous NSURLConnection

后端 未结 3 975
借酒劲吻你
借酒劲吻你 2021-02-06 13:33

I have hit the proverbial wall trying to figure out how to populate an NSImage with data returned from an asynchronous NSURLConnection in my desktop app (NOT an iPhone applicati

3条回答
  •  梦谈多话
    2021-02-06 13:37

    Your intuition is correct; you want to have a callback from the object which is the NSURLConnection’s delegate to the controller which manages the table view, which would update your data source and then call -setNeedsDisplayInRect: with the rect of the row to which the image corresponds.

提交回复
热议问题