Posts

Post not yet marked as solved
0 Replies
581 Views
Hi, I am already confused about getting the regions of interest on Mac (I am getting them through the project info sections which makes no sense to my, why is a region of interest dependent on the project and it seems bug prone as the section are slowly updated after assets are added). How do I get the region of interest of a PHAsset on iOS? And is that approach portable to macOS? All the best Christoph
Posted Last updated
.
Post marked as solved
4 Replies
2.3k Views
Hi,I have a very weird situation. My iMessage App icon is showing well on all iPhones, but not iPad. All icons are generated automatically by sketch in different sizes.I even replaced all icons with version I created using photoshop.I verified all sizes.The icon is in the final binary but is not showing in the list of iMessage apps, instead I see the generic icon with our app name.https://itunes.apple.com/us/app/wit-what-is-this/id1152446245Any idea where this could be comming from? Any resources I could check?All the best Christoph
Posted Last updated
.
Post not yet marked as solved
0 Replies
495 Views
Hi,as all Photos Project Extension, mine comes with an app.How do I open my Photos Extension in Photos directly from my app?Is there an Photos URL Scheme I or open a url to open my extension? All the best Christoph
Posted Last updated
.
Post not yet marked as solved
1 Replies
710 Views
Hi,I want to allow the user to choose wether a document is opened or auto processed when opened from the outside.When currently a document is opened with the app it always opens a document window, not calling the AppDelegate's application:openURLs:So the question is:How do I detect when a file is opened• via Finder "Open With" or• dragged onto the Dock iconwhile bypass when• Recent files is used or• File -> Open / The Open Panel• a document is reopeend• a document is duplicated etc.or any way that is clearly meant to open a doucment window.I have tried overwriting the NSDocumentController, but the open method here does not allow me to distinguish why the file is opened. In NSApplication all document related tasks are in the NSApplication(NSEventHandling) extension and cannot be overwriten, and the actual open event is triggerd by nextEventWithMask:… and intercepting that seemes kind of hackish and cannot be the approach Apple designated for this situation. (especially since the Events are not even well documented :-(Any tips?All the best Christoph
Posted Last updated
.
Post not yet marked as solved
0 Replies
430 Views
Hi,I want to create a PDF where the pages have different sizes. If needed I could set a common mediaBox and just specific bleed and crop boxes for each page. Here is how I create the context and a pageif let context = CGContext(url as CFURL, mediaBox: nil, nil) { var pageDescription: [CFString:Any] = [:] pageDescription[kCGPDFContextMediaBox] = mediaBox pageDescription[kCGPDFContextBleedBox] = mediaBox pageDescription[kCGPDFContextCropBox] = cropBox context.beginPDFPage(pageDescription as CFDictionary)Sadly it looks like nothing is stored in the PDF.I am able to add these informations if I load the document into a PDFDocument after printing, but there must be a direct way, right?All the best Christoph
Posted Last updated
.