Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 2, 2013, 06:08 PM   #1
xArtx
macrumors 6502a
 
Join Date: Mar 2012
Email "Open In" feature

Hi Guys,
I'm trying to associate my App with an image file extension. I've tried .bmp, and .png with no luck.

I've found what looks like some good info on the net:
http://stackoverflow.com/questions/2...ne-application
http://mobiforge.com/developing/stor..._switcher=true

Brad should know his stuff.

What I've noticed is that images in email seem to have a different menu
if you hold your finger on the attachment.
If I follow Brad's instructions with a made up extension (.bmx), my App does show in the stock
email app, but there is no longer any preview of the image in the email app.

Cheers, Art.

Last edited by xArtx; Feb 2, 2013 at 06:37 PM.
xArtx is offline   0 Reply With Quote
Old Feb 2, 2013, 11:23 PM   #2
xArtx
Thread Starter
macrumors 6502a
 
Join Date: Mar 2012
Just a follow up (although I haven't resolved the issue in the first post),

It occurs to me that if you're only dealing with importing one file at a time,
such as a file being sent to your app from the stock email app,
you can just check the existence of the Documents/Inbox directory at
startup, check it's contents, and if a file exists, deal with it, and then
move it, or delete it from Documents/Inbox.

That way you don't have to add anything to AppDelegate or check the
imported file's URL. Your App can know at startup if it was launched by
the email app just because a file exists in the Documents/Inbox.
xArtx is offline   0 Reply With Quote
Old Feb 2, 2013, 11:28 PM   #3
ArtOfWarfare
macrumors 601
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
You could utilize the pasteboard... have the user tap and hold on the image, select "copy", and then when your app is launched take whatever image is on the system pasteboard...
__________________
Battery Status - On the Mac App Store
The only app that'll estimate when your wireless devices will need their batteries changed.
Including the ones paired with other Macs on your network.
ArtOfWarfare is offline   0 Reply With Quote
Old Feb 3, 2013, 01:05 AM   #4
xArtx
Thread Starter
macrumors 6502a
 
Join Date: Mar 2012
Quote:
Originally Posted by ArtOfWarfare View Post
You could utilize the pasteboard... have the user tap and hold on the image, select "copy", and then when your app is launched take whatever image is on the system pasteboard...
Thanks for the reply, and it's a good one, but it won't work for me this time
The pasteboard won't pass data.
It will pass the UIImage, but once the image data is inside that container,
it can't seem to be accessed at byte level, which is why I'm interested in bitmaps.

Since this time I'm going for a charged one. I can't have a user go through
more gestures than they know there needs to be. It would be ok for me,
but not for charging someone.
xArtx is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:00 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC