Importing documents in iOS application
In order to import documents application in iOS should register types of documents that it can handle.
In application target under Info you need to add Document Type that application will be able to open. For example, to support opening of PDF documents NSPasteboardTypePDF should be added with the following parameters:
Name - NSPasteboardTypePDF
Type - com.adobe.pdf
The whole list of supported document types can be found here.
In additional parameters you can specify what kind of actions application will be able to perform with the document.
CFBundleTypeRole - Viewer
LSHandlerRank - Alternate
Other configuration parameters can be found here.
Once application is configured for the supported document type user will be able to select this application by choosing it in a list of applications in Open in.. dialog window of document preview.
When user selects application iOS imports file to the application sandbox and calls a method that must be defined in application AppDelegate class with imported file path. The method should be implemented to handle document after it was imported. For example, it can be saved in a specific place or information about it can saved in database.
Cloud Foundry now supports npm!
Yay, the feature I was working on recently is now on Cloud Foundry! It allows to push Node.js applications with native dependencies, like bcrypt, nowjs and fibers.
Recently I received my certificate after passing Zend PHP 5.3 exam. I am glad I passed it, there were some stuff I didn’t know very well about before preparation, like namespaces, late static binding, etc. The study guide that goes with exam purchase is pretty decent. I liked its minimalistic approach, so it just tells you the main points and what topics are covered on exam. All other information and detailed explanations should be looked on php.net. I got many questions about “final”, “static” keywords, object inheritance. There are many questions with code examples, where you should guess the output.
Here is a good article about what is covered on exam: http://devzone.zend.com/article/12647
Searching for apartment in bay area. Padmapper.com helps a lot.
Happy 101010 (42) - the answer to life, the Universe and everything!