• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Objective-C
  • License
    BSD 2-Clause "Sim...
  • Created about 13 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A lightweight class to allow interaction with the WebArchive Pasteboard type used by Apple's iOS apps

About DTWebArchive

Safari uses the WebKit class WebArchive to make rich data available via the pasteboard. This project aims to give you the capability of accepting such pasteboard data in your apps. WebArchive and the related WebRessource classes are tightly coupled with WebKit and are private on iOS. This project is a reverse-engineered class giving you the same functionality on iOS that is available on OS X.

For example you could allow your users to copy something from a web page and paste it into your app while preserving the formatting.

I put this into its own GitHub project instead of adding it to NSAttributedString+HTML, because it might be useful for you even if you don’t dabble in CoreText with HTML.

License

This is open source and covered by a standard 2-clause BSD license. That means you have to mention Cocoanetics as the original author of this code and reproduce the LICENSE text inside your app.

You can purchase a Non-Attribution-License for 75 Euros for not having to include the LICENSE text.

Documentation

Documentation can be browsed online or installed in your Xcode Organizer via the Atom Feed URL.

Usage

Add the files contained in Core/Source to your project, or add the DTWebArchive.xcodeproj as a sub-project to your project.

More Repositories

1

DTCoreText

Methods to allow using HTML code with CoreText
Objective-C
6,343
star
2

DTFoundation

Standard toolset classes and categories
Objective-C
802
star
3

DTRichTextEditor

A rich-text editor for iOS
Objective-C
354
star
4

DTBonjour

Framework for Communicating over Bonjour+Wifi
Objective-C
340
star
5

Kvitto

App Store Receipt Validation
Swift
295
star
6

Examples

Sample projects that usually go with a blog post
Objective-C
213
star
7

DTMarkdownParser

An event-based parser for markdown text
Objective-C
197
star
8

DTLocalizableStringScanner

An open source substitute for Apple's genstrings which can be integrated in Apps.
Objective-C
109
star
9

BarCodeKit

A modern framework for generating 1D barcodes
Objective-C
87
star
10

AutoIngest

Automatic Sales Report Downloader for Mac
Objective-C
86
star
11

DTITCReportDownloader

A rewrite of Apple's Autoingest.java in Objective-C
Objective-C
81
star
12

DTDownload

File Downloading, Caching and Queueing
Objective-C
80
star
13

Swift-Examples

Cocoanetics Swift Examples
Swift
66
star
14

RadarSamples

Samples For Demonstrating Bug Reports
Objective-C
49
star
15

NSTimeZone-Localization

Providing a localized translation for the geopolitical names in the NSTimeZone class.
Objective-C
39
star
16

DTLoupe

Reimplementation of the iOS magnifying glass
Objective-C
38
star
17

DTKeychain

A simple and modern keychain wrapper
Objective-C
30
star
18

DTOAuth

A Simple OAuth Client
Objective-C
27
star
19

DTPDF

DTPDF
Objective-C
27
star
20

POEditorAPI

An API and Command-line Tool for POEditor.com
Swift
16
star
21

Ruby

Collection of my Ruby Scripts
Ruby
15
star
22

XLIFFix

Utility for recreating strings file from XLIFF
Swift
13
star
23

Barcodes_with_iOS

Sample Source Code for the Book "Barcodes with iOS" published by Manning
Objective-C
13
star
24

DTMorseKeyboard

A custom inputView that accepts Morse Code
Objective-C
12
star
25

DTXMLRPC

Wrapper for XML-RPC APIs
Objective-C
11
star
26

Pebble

Pebble Projects
C
8
star
27

GradleHelpers

1
star