Does anybody knows how to add Safari documentation to Xcode 4 (https://developer.apple.com/safari/resources/), so I could use it offline.
I tried to look at adcdocset document
developer.apple.com/rss/adcdocsets.atom
Feed for Xcode 4.1. is
developer.apple.com/rss/com.apple.adc.documentation.AppleXcode4_0.atom
For Lion Core Libraries
developer.apple.com/rss/com.apple.adc.documentation.AppleLion.atom
So I tried to substitute Safari
developer.apple.com/rss/com.apple.adc.documentation.Safari.atom
developer.apple.com/rss/com.apple.adc.documentation.Safari5_0.atom
developer.apple.com/rss/com.apple.adc.documentation.Safari5.atom
But with no luck.
Even tried to use the web url as feed url
https://developer.apple.com/library/safari/
but nothing.
Is it even possible to get the Safari Docs to be viewable offline?
It would be normal to have it in Dashboard, but Dashboard hasn't got documentation browser.
Not sure, but I do think that since Extensions are build directly within Safari and no more in Xcode there is no way to have that documentation loaded in Xcode.
However you can download PDF version from the developer site.
Related
I have updated my app to Nativescript 7. One thing I haven't been able to get to work correctly is debugging using Chrome Dev Tools. It does use the Chrome Dev Tools console, but I can't seem to get the Network tab to work or the Elements tab. Has anyone else managed to get it to work?
My app uses Angular 10 and Nativescript 7.
I believe they fixed this in a recent update for NS. Try updating and see if that fixes it.
If not you can update your package.json file to use "#nativescript/ios": "6.5.3",. That'll use the JSC compiler for iOS instead of the new V8 runtime, then your element and network inspector should work!
Since the release of "Safari App Extension" I have toyed around with creating safari app extensions for native applications using xcode. Now however, I'm attempting to create an extension for an application that was built using the Electron Framework.
I'm wondering if this is possible and if anyone has had any luck accomplishing this goal. I'm unsure how to go about initiating the safari app extension without the use of xcode.
For those unfamiliar with "Safari App Extension" you can add one to an existing native project by opening a MacOS application, going to "File->New->Target->Safari Extension" this will then create the extension within your existing application and make the extension available within Safari->Preferences->Extensions.
Thank you for reading.
I'm not secure if what I'm saying it's true, but I think that Safari Extensions are writed with Safari apis and/or a language that it isn't javascript (because, on my old Mac, I needed to install an adblocker app with .app extension). The problem is that Electron is based by Chromium and requires javascript and Chromium based extensions. If you want, however, you can do the inverse.
If you are not expert with Chromium extensions, I suggest to you this link.
P.S.: You can also try to find the same or similar extension that works on Chromium.
I now want to write extension for Safari.
But xCode offers me first make the app, and then add the safari extension.
OK, I created an empty application, started writing my extension, but I have a question. Can I release an extension without reference to the application? I do not understand the process.
I want to just create a safari extension, without reference to a particular application, because my product is a Safari extension, not a application.
I know it's late but somebody else might stumble upon this topic and I think the following information can be useful.
It seems that according to Apple's documentation extensions that are created using Safari Extension Builder will not longer be supported: https://developer.apple.com/library/archive/documentation/Tools/Conceptual/SafariExtensionGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009977-CH1-SW1
Developer-signed Safari extensions are not supported in Safari 12. Safari extensions distributed in the Safari Extension Gallery are deprecated, and Safari 12 is the last release to support them. Safari by default will turn off Safari extensions using canLoad. Instead, use Content Blocker extensions. New submissions to the Safari Extensions Gallery will be accepted until the end of 2018.
So the only way seems to be to
Use Safari app extensions to add features to the Safari browser.
https://developer.apple.com/documentation/safariservices/safari_app_extensions:
this looks like the only way to develop an extension as of today (2018), alas.
There are 2 types of Safari extensions: ones that bundled with a Mac app (Safari App Extensions) and standalone extensions. I belive standalone extensions can be created using Safari Extension Builder (avaliable in Develop menu in Safari), without Xcode. You can learn more about Safari extensions here.
As Safari extension Builder is deprecated, you now use Xcode. Simply, a Safari Extension can either be bundled with an app, or standalone. To start a new standalone extension, that is, not part of a desktop app:
Launch Xcode
Choose File > New > Project
Select the template Safari Extension App in the Other section
Click Next (continue through the normal process to develop your Safari Extension)
Alternatively, if you wanted to add a Safari Extension to your existing project:
Launch Xcode
Open your existing app project
Choose File > New > Target
Select the template Safari Extension App in the Other section
Click Next (continue through the normal process to develop your app including Safari Extension)
An example might be Grammarly whereby you can download a desktop client and Safari extension (in a bundle) for macOS, or you may download the extension as a standalone app from App Store.
I am downloading the Xcode from the app store to check how my websites will look on different devices. I know how to use the iOS simulator but for websites that are already online. Is there a way to check how a website looks like when i have it native on my mac? I mean when i am at the development stage of the website before put it online, is there a way to check it on the iOs simulator?
Thanks
The simulator contains a version of Safari that can access the outside world via your Mac's network connection. So you don't have to do anything — just type in the address as with any other browser.
You can also drag and drop local HTML content (or anything else the simulator's miniaturised suite of apps can handle) directly onto the simulator to preview without uploading anywhere.
Is it possible to download all Cocoa API documentation? I have to work offline a lot of times and sometimes a doubt blocks all my work...
Xcode does this for you automatically, unless you've disabled it ?
Your Documentation prefs pane should look something like this:
Note that in the above case there are 4 documentation sets installed and the remaining uninstalled sets can be installed by hitting the associated Get buttons. Once you have the required documentation installed then it's available via the Help => Developer Documentation menu, even when you are off-line.
As #PaulR mentions, Xcode does this automatically. Look in the Documentation preferences. If there's no button called "Get" next in the "Mac OS X 10.6 Core Library" row, then it's already downloaded and installed.
If you still don't think it's working, then check out Ingredients.app. It's an offline documentation browser. It's pretty nice. :)