Is it possible to start ARC app minimized - google-chrome-arc

I would like to start my ARC app minimized or hidden if possible. For chrome apps I can use the CreateWindowOptions in the method chrome.app.window.create https://developer.chrome.com/apps/app_window#type-CreateWindowOptions
Is there some metadata tag available?

Sorry, no. There is no such metadata tag currently.
Feel free to file a bug to request such a feature.

Related

CTFontManagerRegister... for a 3rd-party app

This is a bit basic but I have been struggling finding good documentation around NSFontManager and CTFontManager to achieve this. So here's the scenario:
Keynote (or any other existent app from a different developer) opens a file which uses a font that's not activated.
My app has the font and I use CTFontManagerRegisterFontURLs or one of the similar methods to get it activated.
Keynote gets a notification that the font is now available.
I would imagine there's a NSFontManager notification for missing fonts, but haven't found anything. The notifications seem to be within the sandbox of my own app. Does anyone here have an idea where I can find anything that does this (or almost does this)?
Thank you so much.

Zooming images in an Ionic PWA

I am looking to pinch/zoom images in an Ionic PWA. I can build PWA’s which work for zooming (the whole window zooms) when opened in a browser, but as soon as I save to Standalone mode this becomes disabled I assume this is due to the metadata provided when creating standalone mode.
I’ve tried the ionic-img-viewer plug-in and it doesn’t help.
I don’t know where else to go with this.
Thanks for any pointers
Shane

Electron prompt support

I am looking for a native (OS X) prompt module when working on Electron, something like the window popped up when I click 'Join Other Network...':
This offers the ability to get inputs and process the data returned. So Dialog in Electron may not work here (at least I did not figure it out). I found this issue, but I cannot understand it.
Right now my approach is to open up a browserWindow to to ipc with main thread, but the most critical issue is that, it does not feel like native!
Any help is appreciated!
Electron currently does not have this functionality built in. As far as I know this UI is fully custom, the OS API does not have a direct way to create this UI. For this reason it is likely Electron will never have this functionality.
Your only options are to mimic the native UI in CSS or create a node module that accesses the OS APIs to build your desired UI.

Set Minimum width to 320px on Mac OSX

Is it possible to set a min width for an OSX window to 320px?
The default min width in Safari is greater than this which makes it difficult to program with media queries and replicate on OSX. Please see my screenshot, which will make things clearer.
Incidentally if you are going to post techy answers (I assume someone will) please bear in mind I have no experience with backend code, the most I know is CSS / PHP / JS.
I don't mind getting my hands dirty, but the instructions need to be verbose :-)
Taken from This Link - worked for me in both chrome and safari on OS X
var location = 'http://www.my-app-address.com'
javascript:open(location,'iPhone:portrait','innerWidth='+(320+15)+',innerHeight='+(480+15)+',scrollbars=yes');
and for landscape:
javascript:open(location,'iPhone:landscape','innerWidth='+(480+15)+',innerHeight='+(320+15)+',scrollbars=yes');
In Safari, you can install an extension called 'Resizer' and you have the option of putting in custom sizes.
The funny thing is, once you use Resizer to change the window size, it can then be resized by hand to any size you want. It is almost like using Resizer unlocks the window.
I've created a chrome extension,OSX Resizer, that makes a 320px pop-up of the current window.
Basically the same as Rubinsh's solution, but code free.
The Resizer extension that drummin mentions does not provide this behavior for me.
This can be emulated through Chrome Dev Tools now.
Open Inspector, click the gear on the bottom right, and goto the 'Overrides' tab.
You can even spoof your user agent :)
If your goal is to see how sites will look on an iPhone, you can always download Xcode for free from the Mac App Store, which includes the iOS Simulator.
Alternatively, if you have an iPhone (I assume you do if you're developing sites for it), iOS 6 includes a remote debugging feature that lets you use the Web Inspector on your Mac to inspect and edit a site loaded on your iPhone.

Pasting an image from clipboard to a website

I need to come up with a solution for users to be able to paste an image on to a website, then upload that image on to the web server. I'm not sure what the right solution for this - I am pretty sure javascript is out of the question because I don't think it can handle binary clipboard data (or any clipboard data?)
So, I'm not sure which way to go with this. Is this something possible with a Java applet? Or maybe a Flash SWF? Any other alternatives?
Or this free one (via another StackOverflow question)
You can use pure JavaScript for this, assuming either Chrome or Chrome Frame. Since most other plugins or applets require a specific install action you might as well require installing Chrome Frame as that will fix quite a bit more than just pasting events.
View a live demo of a jQuery plugin that cleanly wraps the HTML Clipboard API. This demo requires the Chrome browser.
Rad Upload (java applet). It's not free, but it is relatively cheap.

Resources