|
Let's talk about writing any code for iOS, macOS, tvOS, and watchOS! And let’s talk about writing Swift for anything! What this thread is about Anything to do with coding for anything Apple has ever made. Apple II through iPad Pro. HyperCard through Swift. Hiring developers (bring money). Any App Store. Safari. Books. AppleScript. There are people in this thread who have been doing Apple-y development for literally decades, people who are currently working at Apple developing cool stuff, and people who are just getting started. Everyone’s welcome! Get started If you’re making something for any Apple platform, your first step is probably to install Xcode on your Mac. It’s free and you can find it in the Mac App Store. You’ll use Xcode to develop iOS, Mac, Apple TV, and Apple Watch apps. If you don’t have a Mac, you’ll need to get one; it won’t necessarily need to be brand new, but a ten-year-old MacBook Air isn’t gonna lead to funtimes either. Ask the thread if you’d like recommendations to fit your budget! If you want to try out Swift on your iPad, get the Swift Playgrounds app from the App Store. It’s free and provides a full-blown Swift compiler and a handy environment for writing Swift, plus numerous tutorials and other activities. You can also try Swift on your Linux machine? That’s a thing! Installing your iOS/TV/watch apps to your own iOS/TV/watch devices is free, but distributing to others requires an annual Apple Developer membership. Running your Mac apps and/or sending them to others is free; distributing via the Mac App Store requires an annual Apple Developer membership. There are many tutorials online about getting into iOS dev. There are books. There are university courses. Feel free to ask in the thread if you’d like suggestions. Getting into Mac dev? There’s some still-good resources in the “archive” Apple Developer site. Don’t be scared of the warnings about being out-of-date; the Mac doesn’t change that much and it doesn’t change that often. Especially the more introductory or conceptual bits will serve you well for a brand-new app you’re starting today; you can always read the release notes to get up to speed once you get your footing. Handy development bits Your package management options are Carthage, CocoaPods, Swift Package Manager (Linux and Mac only, as I write this in January 2019), or manually copying files and dragging them into your Xcode project. That said, Apple platforms ship with a rich collection of mature frameworks with a ton of functionality, so you may find that you need few or no external libraries to build even the most complex app. Whereas in JavaScript-land your first instinct may be to search npm for a library, in Apple-land your first search query should go to the platform documentation. Worth watching Apple Developer videos, including sessions from Apple’s annual developer conference called WWDC (don't forget prior years!). pokeyman fucked around with this message at 02:36 on Jan 9, 2019 |
# ? Mar 27, 2011 19:08 |
|
|
# ? May 15, 2024 04:30 |
|
Relevant SA Threads Threads with nearby topics:
Goon projects doing Apple-y development: Moribund technically-adjacent threads: This thread's predecessors: pokeyman fucked around with this message at 02:11 on Jan 9, 2019 |
# ? Mar 27, 2011 19:09 |
|
Collected thread wisdom Provisioning profiles explained! You've set an exception breakpoint but want the message too? Set the breakpoint action to po $eax. cite pokeyman fucked around with this message at 13:46 on Mar 15, 2013 |
# ? Mar 27, 2011 19:09 |
|
Question posed from an earlier thread: I have a large UIButton and, due to its size, the "highlight" glow doesn't show up. What can I do about this (aside from shrinking the button)? Also, I just added an GLES2 pipeline, and I have the problem that sometimes it will run at full 60fps, and other times at will run at a fraction thereof. Anyone ever seen any like that? code:
|
# ? Mar 27, 2011 23:15 |
|
Glad these are all in one now! When you post the issue you're having, at least try to differentiate between cocoa and cocoa touch.
|
# ? Mar 28, 2011 00:08 |
|
learn how to use blocks and impress your friends and have women fall over themselves getting to you: Introduction to Blocks and Grand Central Dispatch Concurrency the Pro Way
|
# ? Mar 28, 2011 01:53 |
|
For the related threads: The iOS Games Megathread: Lattes of Fun
|
# ? Mar 28, 2011 05:38 |
|
WWDC 2011 has been announced! http://developer.apple.com/wwdc/about/ Fake edit: Anyone know what the Student Scholarship contains?
|
# ? Mar 28, 2011 14:38 |
|
How fast did the tickets go last year? Wasn't it a week or something? I'm trying to get my employer to send me this year. Never been, would be awesome.
|
# ? Mar 28, 2011 15:10 |
|
Small White Dragon: What are you using to do your refreshes? If it is anything other than CADisplayLink then that can be a problem. Otherwise I'd use the new Instruments to check on your OpenGL pipeline and see why it is freaking out. It has some nifty new abilities to suggest best-practices or highlight issues that are performance problems.
|
# ? Mar 28, 2011 15:27 |
|
Dr. Glasscock posted:How fast did the tickets go last year? Wasn't it a week or something? I'm trying to get my employer to send me this year. Never been, would be awesome. Yeah, somewhere between 8 and 12 days, if my poor memory serves me. Hopefully I will be going as well.
|
# ? Mar 28, 2011 15:28 |
|
multigl posted:learn how to use blocks and impress your friends and have women fall over themselves getting to you That's not even hyperbole. Thanks! Anode posted:For the related threads And thanks to you!
|
# ? Mar 28, 2011 16:30 |
|
Small White Dragon posted:Also, I just added an GLES2 pipeline, and I have the problem that sometimes it will run at full 60fps, and other times at will run at a fraction thereof. Anyone ever seen any like that? Have you got a frame interval counter in your render loop to measure how long each slower running frame takes? Are they at even divisions of 60Hz? Does the problem exhibit itself when you target a 30fps frame rate? As Ender.uNF suggests, have you tried profiling your app with Instruments and checked for memory leaks? Is this running on OS X, iOS emulator or a real iOS device (if so, what generation)? Without some real data we can only randomly guess at what may be causing your problem.
|
# ? Mar 28, 2011 16:39 |
|
Anyone have a recommendation for a decent, affordable place for App Store localisation?
|
# ? Mar 29, 2011 04:29 |
|
And it's sold out.
|
# ? Mar 29, 2011 04:39 |
|
Yakattak posted:WWDC 2011 has been announced! The student scholarship is traditionally just a conference ticket; I doubt they'd change it to include anything extra.
|
# ? Mar 29, 2011 11:25 |
|
TOMSOVERBAGHDAD posted:The student scholarship is traditionally just a conference ticket; I doubt they'd change it to include anything extra. I meant the application process, sorry.
|
# ? Mar 29, 2011 12:01 |
|
wolffenstein posted:And it's sold out. drat, turns out my employer was definitely gonna send me. Nobody thought it would sell out in 6 - 12 hours. I figured it would be a day at least. . Next year I guess.
|
# ? Mar 29, 2011 15:21 |
|
Dr. Glasscock posted:drat, turns out my employer was definitely gonna send me. Nobody thought it would sell out in 6 - 12 hours. I figured it would be a day at least. . Next year I guess. Same boat. Got approval to go lat night, went to reg. this AM, and
|
# ? Mar 29, 2011 15:25 |
|
Selling out this fast is insanity. I can only assume it will get worse.
|
# ? Mar 29, 2011 18:18 |
|
Small White Dragon posted:Selling out this fast is insanity. I can only assume it will get worse. That is an excellent assumption, unless Apple expands capacity. Unfortunately that can have the effect of reducing the effectiveness... I've heard that the best part about going is being able to talk to Apple folks one on one. If it gets too big that will be less likely. Watching the WWDC videos, most of them are fairly basic stuff so I wonder how much there is to get out of the sessions.
|
# ? Mar 29, 2011 18:59 |
|
I've been asked to check out different game engines out there that would make porting to different platforms not such a hard task. We'd be starting out making something for iOS. Any suggestions for either 2D or 3D? So far I've looked at Big World Technology, Panda 3D, and Esenthel.
|
# ? Mar 29, 2011 19:14 |
|
Unity seems popular.
|
# ? Mar 29, 2011 19:15 |
|
wdarkk posted:Unity seems popular. Thanks that definitely looks dependable. Can't really use Unity Pro and for iOS unless we pay the $3,000 fee right? Unity free I don't even believe you're allowed to publish anything to the app store.
|
# ? Mar 29, 2011 19:26 |
|
"The current quarter of CS193p (Spring 2011) is not on iTunesU and can only be taken by registered students of Stanford University." gently caress. Although the last time they did this was when they revamped the curriculum, so maybe they're including Xcode4 this time around. I'm fully expecting the next quarter CS193p to be on iTunes U. Meanwhile, the Winter 2010 course is still really really good.
|
# ? Mar 29, 2011 20:35 |
|
Is there a good reason to do more than one quarter? (Honest question, not sarcasm!)
|
# ? Mar 29, 2011 21:00 |
|
Woot! The NYT just named Nash Smasher as one of the top 10 iPad apps for kids!
|
# ? Mar 29, 2011 22:33 |
|
Anode posted:Is there a good reason to do more than one quarter? (Honest question, not sarcasm!) Well before when it was just iPhone development, probably not. But they've since updated the curriculum a few times, once to generalize on iOS+iPad rather than iPhone, and now I assume to add Xcode4. If you already know your stuff, absolutely not. Not unless you want a refresher. If you're just starting out or don't know Cocoa/ObjC very well? Probably can't hurt. Like I was pretty decent at it until I put it all on the backburner to work on my CCNA. I went through the iOS one and it really helped me re-learn some fundamentals. I guess you could argue that if I forgot them that quickly then I wasn't really that good to begin with, so whatever
|
# ? Mar 29, 2011 22:37 |
|
Ender.uNF posted:That is an excellent assumption, unless Apple expands capacity. Unfortunately that can have the effect of reducing the effectiveness... I've heard that the best part about going is being able to talk to Apple folks one on one. If it gets too big that will be less likely. They could do more of them, instead of making it bigger. Although that's not really scaleable either.
|
# ? Mar 30, 2011 04:24 |
|
I need help with something basic: In the sample MoveMe app that Apple provides, the AppDelegate implementation starts off with a different method and return type: code:
code:
I hope I've been clear enough. Thanks
|
# ? Mar 30, 2011 17:00 |
|
smug forum rear end in a top hat posted:I need help with something basic: Don't worry about it! The -didFinishLaunchingWithOptions is what Apple recommends now, but wasn't introduced until iOS 3.0, so older tutorials won't have it. It lets you handle fancy remote notifications and stuff, but really don't worry about it for now, just return YES and it'll be the same as -didFinishLaunching You sound like you care about details and understanding the fine points, which is awesome, so if you want more info read up on both of those methods in the documentation.
|
# ? Mar 30, 2011 17:47 |
|
OHIO posted:You sound like you care about details and understanding the fine points, which is awesome, so if you want more info read up on both of those methods in the documentation. For example, what I just did before I read OHIO's response: switch to Xcode, hit command-option-shift-/ and typed 'applicationdidfinish', hit the first result, and read: "This method is used in earlier versions of iOS to initialize the application and prepare it to run. In iOS 3.0 and later, you should use the application:didFinishLaunchingWithOptions: instead." (And 'application:didFinishLaunchingWithOptions:' was a link.)
|
# ? Mar 30, 2011 19:13 |
|
Is there a jump to the next / previous #pragma mark keystroke?
|
# ? Mar 30, 2011 20:04 |
|
Man is anyone able to download and open the XCode 3.2.6 DMG from the developer site? I tried it and had 2 others try it and send it to me, every time I get an invalid checksum. I couldn't stand XCode 4 being leaky as poo poo anymore so I went to roll back. Now I have a dev machine without XCode on it. Yay for wasted time. EDIT: Man I've spent the entire loving day trying to get A copy of XCode downloaded (3 or 4, whatever). I have 4 other guys in the office all trying to grab a working file from different networks. Some guy on the apple forums says he got a working 3.2.6 and posted the SHA hash, but he has to be full of poo poo. No matter what the file gives an invalid checksum every loving time. The file has to be corrupt. Now we're just trying to get a copy of 4 downloaded but it keeps stalling and timing out. Or the file is too small. This is getting ridiculous. Dr. Glasscock fucked around with this message at 18:33 on Mar 31, 2011 |
# ? Mar 30, 2011 23:18 |
|
edit: doh
Simulated fucked around with this message at 18:58 on Apr 1, 2011 |
# ? Mar 31, 2011 03:07 |
|
What is the current wait time for a corporate developer program enrolment? My boss applied near the beginning of February and there's still no word on it. Is there a chance this is hung up with someone further up the management chain in my company who they have called to verify stuff with?
|
# ? Mar 31, 2011 18:42 |
|
So I'm trying to do some basic audio programming in Cocoa (OS X, not iOS) and I'm having a lot of trouble. I'm totally new to audio programming, so it'd be nice to have a nice, simple walkthrough on how to do some basic tasks, but Apple's audio documentation is pretty awful. Specifically, I want to generate some MIDI data and play it back with standard MIDI instruments. The only concrete example I can find that does what I want is this. That works fine I guess, but it doesn't really explain what it's doing for the most part. I can follow by example well enough, but I feel like I don't really understand half of it. I'm also not really happy with this code in that the MIDI events need to be generated in real time. I was hoping to generate a bunch of midi data beforehand and then pass that off somewhere to play. I'm sure I would have found something on Google if it was out there, but if anyone knows of any resources that focus on getting started with this stuff from a total beginner's perspective that would be awesome. Or if there's some kind of higher-level audio framework I could use that would be great too. Everything I found seemed to be really out of date though.
|
# ? Mar 31, 2011 20:10 |
|
Over 6 hours into the day and I still can't get any loving version of XCode downloaded, this is ridiculous. Time for a support request I guess.
|
# ? Mar 31, 2011 20:47 |
|
Gordon Cole posted:Apple's audio documentation is pretty awful.
|
# ? Mar 31, 2011 22:25 |
|
|
# ? May 15, 2024 04:30 |
|
aehiilrs posted:What is the current wait time for a corporate developer program enrolment? My boss applied near the beginning of February and there's still no word on it. By all means have him call Apple. Mine was hung up because apparently they don't accept a legally registered Ontario "sole proprietorship" as a business entity, but didn't actually tell me and I had to finally just call some number I found on the developer site and got the straight dope. If you are a verifiable contact point for your company they should at least be able to tell you what is being held up. Wish they had made the "sole proprietorship isn't valid for a corporate enrollment" thing clearer before I blew like a hundred bucks registering everything with the loving province though.
|
# ? Mar 31, 2011 22:41 |