Where do thumbnail pictures come from on Mac? - macos

As the picture shows above, when we use Pages, and open several pages, then on the "Show Recents" menu from the app icon on the dock, you can see the thumbnail. I designed my own app, which when I register a customised suffix file into the recent files, then my thumbnail will be like this.
How to make it more native like Pages?
I just want to get that static picture.

Implement a Quick Look generator. That's a loadable code bundle that various OS components use to get thumbnails and previews for custom document types.

Related

Use a PDF for iOS application icon

For asset catalog icons, Xamarin lets specify a single PDF, and it does all the bitmap conversion for you.
Is there a similar method available for the application icons? It would be nice to not have to generate by hand all the different sizes required?

Extract image resources from Mac's builtin applications

Just an example, Apple's Mail, Notes and Messages use the same image for their "Edit" button. However, I cannot find that image in any of the resources folder in their app bundles. I guess the image might be in a system folder that is used by these applications. There are many "common used images" like this one that are not in Xcode's media library. Since they are already familiar to the users, it makes sense to use the same image set in my own app.
My question is, where can I find those images? A side question, is it legal to use them?

Icon overlay in Finder for Icon Views other than Arrange By Name

I have icon overlays working in Finder using mac_inject through the drawImage: method of the class IKImageBrowserCell (I also have the various list views working).
When Finder is switched into Arrange By Kind (or anything other than Arrange By Name) then the icon overlays no longer work.
Has anybody figured out what class needs to be used for these other views? I've been experimenting for days with no luck.
If your question is still actual, there are perfect tool called liferay-nativity hosted in github. It's cross platform, open source tool for adding icon overlay. It works with Finder very well.
https://github.com/liferay/liferay-nativity

How to get file/folder drag image overlay as in Windows Explorer for Vista/7?

I am C#, .NET WPF developer I'd like to have in my application drag and drop experience that looks like the one in Windows Explorer. In particular I'd like to have this nice looking image when dragging some file (I am creating file manager app).
I am not sure how to accomplish this, I guess there is some way to get from the shell this image so that I can include it in my dragging overlay but I am not sure how to do that. I notice that some software (eg. ImgBurn) does something like this but I am not sure how.
I am aware of this blog post with very useful info: https://learn.microsoft.com/en-us/archive/blogs/adamroot/shell-style-drag-and-drop-in-net-part-3
However I it doesn't provide example of how to get image overlay when dragging items in custom application.

Which controls to use for a Mac OS X application?

I developed some app for iPhone/iPad, so I know the basic concepts of Cocoa programming. Now I need to write a Mac OS X application. If you help me to choose the right controls to use, I'll study the Apple documentation reference for them.
I need:
a control to show a grid of thumbnails (png images); I'll be able to change the order of the thumbnails by dragging and dropping them;
a control to show a single image (e.g. UIImageView of Cocoa Touch) with the possibility to drag and drop another image over the first one; besides I need to move and resize the second image by dragging its corners (as if corners were "anchors");
a control to browse the media files on the Mac (possibly iPhoto images, iTunes DRM-free songs, or simply the content of a given folder), like the media browser of iMovie.
I use Xcode 4.2.
You can use NSCollectionView and co. for this. Xcode has a sample application somewhere in documentation (browsing various images) as well as tutorial on how to setup NSCollectionView yourself.
Check NSImageView. You can basically find any Cocoa control alternative to Cocoa Touch just by changing UI prefix to NS.
There is no such control per-se (unless IKImageBrowser for backgrounds), but using aforementioned NSCollectionView and some API for media files you should get around pretty quickly.
Also check ImageKit framework for images (for browsing, viewing and modifying).

Resources