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 1, 2012, 03:33 AM   #1
Paandaman
macrumors newbie
 
Join Date: Jan 2012
A way to see the code of existing apps?

Hello everyone!

Does anyone know if there is a program that let's you see the code of an existing app? I would like to get a bit more insight in how other people have constructed their apps. I know that there's some test apps that you can download from the apple-site but none of the apps there is in my interests.

Thanks in advance!
Paandaman is offline   0 Reply With Quote
Old Feb 1, 2012, 03:35 AM   #2
admanimal
macrumors 68040
 
Join Date: Apr 2005
It is impossible to reverse engineer the Objective-C code from a compiled app.
admanimal is offline   0 Reply With Quote
Old Feb 1, 2012, 03:36 AM   #3
miles01110
macrumors 604
 
miles01110's Avatar
 
Join Date: Jul 2006
Location: The Ivory Tower (I'm not coming down)
You can e-mail the developer and ask for the code.
__________________
Got a problem? Check here first.
miles01110 is offline   0 Reply With Quote
Old Feb 1, 2012, 03:38 AM   #4
admanimal
macrumors 68040
 
Join Date: Apr 2005
You can also email Coke and KFC and ask for their secret recipes.
admanimal is offline   0 Reply With Quote
Old Feb 1, 2012, 05:46 AM   #5
ArtOfWarfare
macrumors 68040
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
Quote:
Originally Posted by admanimal View Post
You can also email Coke and KFC and ask for their secret recipes.
Yes, and that'd be akin to asking Microsoft or Adobe for their code.

Asking a developer for their code is more like asking your local mom and pop bakery about their recipe. There's a good chance they're friendly and will tell you some of it, if not all.

And actually, I've emailed Coke before regarding how they make various packaging choices (school assignment a few years ago.) I got a very surprisingly detailed response.
__________________
Battery Status - On the Mac App Store
The only app that'll estimate when your wireless devices will need their batteries changed.
Like it on Facebook!
ArtOfWarfare is offline   0 Reply With Quote
Old Feb 1, 2012, 07:07 AM   #6
PhoneyDeveloper
macrumors 68020
 
PhoneyDeveloper's Avatar
 
Join Date: Sep 2008
Start here

http://cocoadev.com/index.pl?ClassDump
PhoneyDeveloper is offline   0 Reply With Quote
Old Feb 1, 2012, 08:56 AM   #7
johnjmapp
macrumors newbie
 
Join Date: Jan 2012
dont think there is any at the moment.
johnjmapp is offline   0 Reply With Quote
Old Feb 1, 2012, 09:15 AM   #8
dejo
Demi-God (Moderator)
 
dejo's Avatar
 
Join Date: Sep 2004
Location: Colorado
Quote:
Originally Posted by Paandaman View Post
Does anyone know if there is a program that let's you see the code of an existing app?
There may be ways to decompile the executable of other apps, but you would lose a lot of what help makes that code understandable (variable names with meaning, comments, etc.)

Quote:
Originally Posted by Paandaman View Post
I know that there's some test apps that you can download from the apple-site but none of the apps there is in my interests.
So, what is your area of interest?
__________________
My iOS Apps: a.k.a., DreamStream
I support the MacRumors Blood Drive!
dejo is online now   0 Reply With Quote
Old Feb 1, 2012, 11:30 AM   #9
dantastic
macrumors regular
 
Join Date: Jan 2011
What you want to do instead is download a few open source projects from github and have a look how they are constructed. Open source projects tend to be well structured and ok-enough documented.

This presuming you are looking to pick up best practices.
dantastic is offline   0 Reply With Quote
Old Feb 2, 2012, 01:48 AM   #10
Paandaman
Thread Starter
macrumors newbie
 
Join Date: Jan 2012
Thanks a lot for the replies everyone, you've been really helpful
Will try to go through some open sources then!

----------

So, what is your area of interest?[/QUOTE]

Currently i would like to know how to make it possible to see a list of all applications running or just existing on the phone. I have seen it on quite a lot of apps on the market but not on any open source document yet!
Paandaman is offline   0 Reply With Quote
Old Feb 2, 2012, 09:44 AM   #11
dejo
Demi-God (Moderator)
 
dejo's Avatar
 
Join Date: Sep 2004
Location: Colorado
Quote:
Originally Posted by Paandaman View Post
Currently i would like to know how to make it possible to see a list of all applications running or just existing on the phone. I have seen it on quite a lot of apps on the market but not on any open source document yet!
Really? Care to provide some examples?

EDIT:

Anyways, perhaps this blog post will help.
__________________
My iOS Apps: a.k.a., DreamStream
I support the MacRumors Blood Drive!

Last edited by dejo; Feb 2, 2012 at 10:52 AM. Reason: Added link.
dejo is online now   0 Reply With Quote
Old Feb 2, 2012, 12:18 PM   #12
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
Reverse engineering is almost always possible with a lot effort and expertise on a rooted device to which you have physical access. But reverse engineering will not show you the original code for the app, only an equivalent that can produce the same compiled result, which is usually far less readable (but occasionally can be more readable for really badly coded apps).

iOS App store app binaries are encrypted. But unencrypted info might include plists, object method and class names.

Really, the only good way to see the actual source code of an app might be to politely ask the author of the app if they will send you a copy. Or even offer to buy the code.
firewood is offline   0 Reply With Quote
Old Feb 2, 2012, 03:08 PM   #13
Paandaman
Thread Starter
macrumors newbie
 
Join Date: Jan 2012
Quote:
Originally Posted by dejo View Post
Really? Care to provide some examples?

EDIT:

Anyways, perhaps this blog post will help.
I have seen it in SBsettings where it's called appfolders. And please excuse me if i sound like some kind of smartass trying to prove his point, i'm just really unfamiliar with everything that has to do with programming. That link seems to be spot on! Cheers

Thanks firewood, i'll see if i can get in contact with the developer then
Paandaman is offline   0 Reply With Quote
Old Feb 2, 2012, 03:24 PM   #14
dejo
Demi-God (Moderator)
 
dejo's Avatar
 
Join Date: Sep 2004
Location: Colorado
Quote:
Originally Posted by Paandaman View Post
...i'm just really unfamiliar with everything that has to do with programming.
In that case, I suggest you put all your grand ideas on the back-burner for now and concentrate on just learning the fundamentals of programming. Get comfortable with the basics, build small, simple programs, tweak existing code to enhance it, learn more advanced concepts, apply them, etc. Then, in a few weeks (or months, realistically), you can revisit what you can possibly accomplish for your high school project.
__________________
My iOS Apps: a.k.a., DreamStream
I support the MacRumors Blood Drive!
dejo is online now   0 Reply With Quote
Old Feb 3, 2012, 04:39 AM   #15
robbieduncan
Demi-God (Moderator)
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by Paandaman View Post
I have seen it in SBsettings where it's called appfolders.
That's a Jailbroken app. To the best of my knowledge what you are asking to do is completely impossible on non-Jailbroken devices. The developers on these forums seem to mostly concentrate on targeting non-Jailbroken devices using the official SDK.
robbieduncan is offline   0 Reply With Quote
Old Feb 3, 2012, 05:33 AM   #16
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
Quote:
Originally Posted by robbieduncan View Post
That's a Jailbroken app. To the best of my knowledge what you are asking to do is completely impossible on non-Jailbroken devices. The developers on these forums seem to mostly concentrate on targeting non-Jailbroken devices using the official SDK.
I do have 1 question about it though. When you run BUMP, you can collect information about other apps installed.. How does that happen >.> (not trying to prove a point or being smartass, just want to know).
__________________
CSS (Counter Strike Source) Tribute - iPad application
iPad Mini, iPad 4, iPad 2, iPhone 3G,4,5, iMac 24", Mac Mini Last gen, Macbook Pro with Dell U2711
jnoxx is offline   0 Reply With Quote
Old Feb 3, 2012, 05:37 AM   #17
robbieduncan
Demi-God (Moderator)
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by jnoxx View Post
I do have 1 question about it though. When you run BUMP, you can collect information about other apps installed.. How does that happen >.> (not trying to prove a point or being smartass, just want to know).
All other apps? Or ones that respond to it or can be used with it in some way (I've never used BUMP but I assume it's showing a list of other apps that it can interact with). If it shows apps that can be used with BUMP does it only show apps that have previously been used with it? Or if you install a new app does it show in BUMP before you open/use the new app?

I am basically wondering if BUMP exposes a custom URL scheme handler and the URLs the other apps use to open BUMP somehow encode the app and BUMP simply remembers them or if there is something clever going on.
robbieduncan is offline   0 Reply With Quote
Old Feb 3, 2012, 05:40 AM   #18
dantastic
macrumors regular
 
Join Date: Jan 2011
Quote:
Originally Posted by jnoxx View Post
I do have 1 question about it though. When you run BUMP, you can collect information about other apps installed.. How does that happen >.> (not trying to prove a point or being smartass, just want to know).
dejo posted a link a bit up: http://amitay.us/blog/files/how_to_d...d_ios_apps.php

essentially, your app needs to keep a list of apps it has info on and test for each one by either urlscheme or executable name.
dantastic is offline   0 Reply With Quote
Old Feb 3, 2012, 07:57 AM   #19
thewitt
macrumors 68000
 
thewitt's Avatar
 
Join Date: Sep 2011
Code requests from other programmers always intrigue me. We get requests every month through our support email address where people want to see source code for one of our apps.

The answer is always no - unless you would like to pay for custom app development, then you will get source, and no we won't sell just one section of code...

Commercial app developers do this for a living, don't expect them to give you their work for free.

If you want free source code, there are plenty of open source, all volunteer projects out there you can peruse, as well as the Stanford podcasts at iTunes U and lots of books on programming iOS devices.
thewitt is offline   0 Reply With Quote
Old Feb 3, 2012, 12:48 PM   #20
KarlJay
macrumors 6502
 
Join Date: May 2010
Location: California
You might want to look at some of the books that are being offered. I just bought Learning Cocos 2D at 1/2 off and it has complete source code you can download.

The upside to buying one of these kind of books, is that you get chapter after chapter explaining the source code.

Look at the eBooks deal thread posted in this forum. I paid $9.99 for mine.

On decompiling programs, I've had that happen before. Years ago a client bought a product that decompiled my program and they hired someone to take over so they wouldn't have to pay me. There's usually a way to do this, but you end up with very hard to read source code and it's not always in the high level languages. Hard to learn from, much better to learn from a good book.
KarlJay 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

Similar Threads
thread Thread Starter Forum Replies Last Post
Is there a way to register the name of an App so it doesn't get stolen? chrono1081 iPhone/iPad Programming 4 May 14, 2011 05:30 PM
Best way to see source code of swf files? Tryx Digital Video 0 Jul 17, 2010 08:45 PM
Is there a way to deactivate the controls of nike+/music app while the ipod is locked mumpitz iPod touch 0 Apr 19, 2009 06:07 AM
Any way to see a list of devices supported by iSync on 10.3? Poff Mac OS X 3 Dec 6, 2006 09:40 AM
Is there a way to see what Internet resources an app is using? Doctor Q Mac Applications and Mac App Store 0 Nov 17, 2004 03:27 PM


All times are GMT -5. The time now is 11:07 PM.

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

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC