Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Mac OS X Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-07-2011, 06:33 AM   #1 (permalink)
Registered Member
 
Tomtheman2's Avatar
 
Join Date: Mar 2009
Posts: 144
Tomtheman2 is on a distinguished road
Exclamation mac apps and ios apps the same code?

I want to find out before I pay out the $99 fee whether I can just load up one of my apps in xcode like normal and then send it to the mac app store instead of the itunes store? Or do you have to re program the whole app?

Thanks,
__________________
Buy our apps for £10! Coupon code 'iphonesdk' for 10% off! - Click Here

Brew Up - All in one list for tea and coffee rounds
MovieTheatrePest
($0.99)
MyReactionTime ($0.99)
Brain Tester ($0.99) - Top Seller!
iTouchWood Free!
Tomtheman2 is offline   Reply With Quote
Old 01-07-2011, 06:56 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2010
Location: Edinburgh
Posts: 209
Justinmichael is on a distinguished road
Default

Quote:
Originally Posted by Tomtheman2 View Post
I want to find out before I pay out the $99 fee whether I can just load up one of my apps in xcode like normal and then send it to the mac app store instead of the itunes store? Or do you have to re program the whole app?

Thanks,
I've no experience with this but I think it is pretty obvious. There are differences between the iOS API and the Mac OS APIs and these are places you will need to edit your app. For example, touch events on iOS and mouse events on Mac store. I don't think there will be any way to make a universal or Mac / OS targets in the immediate future, but who knows what is planned down the line.

There is the glaringly obvious issue about what you are saying too; you shouldn't just release an iOS game for the mac really, you should make it with mac in mind. I don't see minimum effort iPhone ports being any good on the mac (the same goes for the iPad). I'd recommend taking your time and making a good port instead of trying to the minimum possible. Whether that actually affects your revenue, I can't say.

Hope this is helpful, and hope you manage to port your app.
__________________
Justinmichael is offline   Reply With Quote
Old 01-07-2011, 07:02 AM   #3 (permalink)
Daddy Cool
iPhone Dev SDK Supporter
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,616
MarkC is on a distinguished road
Default

XCode already has the option to build a new Mac program - try it for yourself and see which libraries aren't available.
MarkC is offline   Reply With Quote
Old 01-07-2011, 08:57 AM   #4 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 193
Ed99 is on a distinguished road
Default

You can use the same XCode, but there will be a lot of differences between a Mac and iOS app -- mainly in a Mac app all the objects are NS objects instead of UI objects (ie, NSWindow and NSApplication instead of UIWindow and UIApplication). A lot of these objects will have similar names, but you won't be able to do the same stuff to them. For example I had a real hard time modifying a hierarchy of NSViews whereas it is pretty easy with UIViews.

If you have mainly an openGL app, you're probably in a better position as I'm guessing most of the openGL stuff could remain the same.

Also, before you actually build your app for distribution you will have to download the Application Tools xCode addon from the Mac Development Center (you probably have to register as a Mac developer for this). I think the application tools only pertain to code signing, but I could be wrong.
Ed99 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 454
16 members and 438 guests
alexeir, David-T, Dj_kades, foslock, iAppDeveloper, ilmman, j.b.rajesh@gmail.com, mer10, mkjarred, Music Man, myach, pipposanta, QuantumDoja, robsmy, sacha1996, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:32 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0