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 603
 
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...
__________________
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
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

Similar Threads
thread Thread Starter Forum Replies Last Post
The "favorite" feature on twitter is misused as a "like" button TH55 Apple, Industry and Internet Discussion 49 Dec 23, 2013 07:18 PM
Safari Autofills Facebook.com email?/ FB email is listed as "Email" in contact entry? H3LL5P4WN iOS 7 1 Nov 4, 2013 06:58 AM
BIG new iTunes 11.1 feature- "Other" turned into "Documents and Data" sflomenb Mac Applications and Mac App Store 0 Sep 18, 2013 06:57 PM
"New" Sky News is useless with out "play all" feature mtnewyork Apple TV and Home Theater 2 Jun 25, 2013 01:03 PM
Name of the "file open" / "save as" dialog box app? ancilla OS X 10.8 Mountain Lion 0 Sep 29, 2012 03:59 PM

Forum Jump

All times are GMT -5. The time now is 12:57 AM.

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

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