Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDerek Medlin
6,151 PointsSharing plist / settings with another app
I have around 22 settings that calculate price for this estimate calculator that i've made (yeah I know it's a lot but its needed). I was wondering if its possible to share settings via email. Basically like a "open in" or something. Basically, one person with the app could share the settings to another person with the app so they have the same pricing settings with out having to manually set them. I've managed to email a dictionary as plain text and then the other person copy the text in email and then my app uses to the pasteboard to import the settings but not very intuitive. Thanks and sorry for the nooby question.
P.S. I don't need a tutorial (though that would be nice), I just need to be pointed in the right direction. Thanks
1 Answer
Amit Bijlani
Treehouse Guest TeacherYou would have to serialize the plist which means writing the plist data to a file. You can provide your plist a unique extension (file type) which can only be understood by your application. You would then have to register your app to support that unique file type. Once registered, your app will show in the "Open in" when you send over this plist via email it. I'm sure there are a lot implementation details there but those are two pieces of the puzzle.
Derek Medlin
6,151 PointsDerek Medlin
6,151 PointsYou're awesome. Thanks!