URL からを作成し、NSImage
それをアプリケーションのイメージ ビューに設定する必要があります。オンラインで見つけたコードをいくつか試しましたが、うまくいきませんでした。誰かがこれを行う方法を知っていれば、どんな助けも素晴らしいでしょう.
ありがとう
URL からを作成し、NSImage
それをアプリケーションのイメージ ビューに設定する必要があります。オンラインで見つけたコードをいくつか試しましたが、うまくいきませんでした。誰かがこれを行う方法を知っていれば、どんな助けも素晴らしいでしょう.
ありがとう
あなたは見たいと思うでしょう
initWithContentsOfURL:
Initializes and returns an NSImage instance with the contents of the specified URL.
- (id)initWithContentsOfURL:(NSURL *)aURL
Parameters
aUrl
The URL identifying the image.
Return Value
An initialized NSImage instance, or nil if the method cannot create an image representation from the contents of the specified URL.