The icon that represents the file wrapper.
- macOS 10.0+
You don’t have to use this icon; for example, a file viewer typically looks up icons automatically based on file extensions, and so wouldn’t need this one. Similarly, if a file wrapper represents an image file, you can display the image directly rather than a file icon.
This method may return
nil if the file wrapper is a child created when its parent was read from the file system, and the child was modified before it was read. Use the
NSFile reading option to reduce the likelihood of that problem.
NSImage object that's returned might be shared by many
File objects, you must not mutate it. If you need to mutate the returned object, make a copy first and mutate the copy instead.