site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=QpMRlQViaKXtGsaOdfZe1XUnYXHV7EalP+JFWy7t5vE=; b=tpubzNdGLKoE3q0wsdIKgInAQ7q5D3mHvxxlfS6/z+3DStCpoT6rJj+y/FpnRuM7cv LHpGEkfx/x1/rdkO05SzVlkpWaYQ44an5IvpTeRiakielHLo7RkJadw1OQm80XLPJAnD HLME1cDqDtzl5fmvsGco8d+I/46xuovkHCa+4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=BvIAbOeazE9YeAvMNQVx4cerjvn54jsIAVr9/V+NCgYC5V9EvdCHSkKdZ2mmcjzgWC 6COBa+gYEh64P97iN2ozeSIzK9VzUgvxo0fiWS6xcnPYq7ZjpwUm34Z5REs6l5yZg9Ih /tV14Kh+/SM0+8cIzO85NBLB6J32CBaNbJskw= On Tue, Dec 29, 2009 at 4:13 PM, Paul Archibald <pxl@sonic.net> wrote:
Cool, thanks, I'll try that.
On Dec 29, 2009, at 11:10 AM, davelist@mac.com wrote:
On Dec 29, 2009, at 11:56 AM, Paul Archibald wrote:
I am using SQLite in my iPhone app. and i want to be able to email the database file. I see that attaching it to a message is pretty straightforward, but the addAttachmentData method requires a mime type, and I don't know what that should be. Any ideas out there?
I don't know if this is the "correct" one, but application/octet-stream seems to work fine for me in my Attendance app.
The best choice is to use an application-specific extension MIME type: application/x-sqlite3 Or, if you don't want this DB to be generally usable/recognisable, make it specific to your app: application/x-myiphone-app IIRC, most browsers that don't know how deal with an x- treat it as octet-stream, but it gives other programs with more information on application/x-sqlite3 or application/x-myiphone-app a way to deal with it better. -austin -- Austin Ziegler • halostatue@gmail.com • austin@halostatue.ca http://www.halostatue.ca/ • http://twitter.com/halostatue _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com