Sunday 15 April 2012

ios - Making a new format (ex ".rcb") -


I am thinking that it is possible to create a whole new format using the .text file for Mac text. And use MOV for movies, so it is possible to create a new format, which I can put in an iOS application which will use it off and stop exporting, for example, the application page .pages file , And if so, then Or a good tutorial site or script that you can use.

Some ideas: / P>

  1. file extensions

    If this is just an app that uses your app internally, then no matter what extension you use, use whatever you want.

    If you want to share files, then you should ensure that you choose the extension you believe is unique. For example, it seems that the RCB extension is used by Easy Resume Creator Pro (I do not know it, but this is the quick Google of that detail report).

  2. How to do this.

    I just recommend that you look at Ray Vanderlich's site, which tells how you can define UTI for your app's data files.

  3. How to store information.

    In the context of how to store data in a file, you can clearly do whatever you like, but I encourage you to consider, if dealing with text data, Use (even if you are using your custom extension) For example, if simple cocoa behaves like objects like strings, strings, numbers, dates, then I can suggest using the lists of assets (see that Apple writes the data in XML format.

    Alternatively, if you use your own NSObject subclasses, you can use the binary property list format and that is discussed in Apple. < P> Such There are other formats that are open for you, but these two approach take advantage of well-established interface to read and write data and can be done with minimal effort

  4. < P> New file format options.

    Depending on what you are trying to do, if enough information is being exchanged, then enough can be enough. Dealing with custom file formats Interrupts the issue and enables some other workflows.

    Hopefully you have enough to start researching different options. < / Div>

No comments:

Post a Comment