10 Things Apple Could Do to Make iPhone Development Perfect
Join the DZone community and get the full member experience.Join For Free
i admit, i love developing for iphone. i’ve been doing it non-stop for over a year, for various clients, full-time and part-time, and most of the annoyances many developers complain about i don’t even notice myself anymore. i don’t desire garbage collection — i can speak retain and release like i do english. i enjoy objective-c despite its quirks. etc., etc.
that being said, apple, if you’re listening, if you just did the following 10 things, i would be in programmer heaven. so, here we go, the top 10 things apple could do to make iphone development perfect!
this is obvious. everyone wants this. i am a big believer in using little-f frameworks and libraries, but it’s hampered by the excruciating processes required to bring them in. three20 is great, but what a pain to bring it into a project. many require upwards of 10 steps! starting a project is painful due to this. and there is always one little check box or one little include path that you forget to do that takes too much time to figure out. why should developers be punished for using libraries that greatly increase the utility and reliability of their apps?!
you already support it for mac. apple, stop dorking around with gyroscopes and allow frameworks for iphone!
come on, even the java me simulators allowed this! you could open up a popup that allowed you to change latitude and longitude. the gps would detect the change (you didn’t even have to hit ok!) and would place you where you specified. somewhere in xcode apple has hardcoded cupertino, california. is it so hard to just allow a user to change this for testing purposes?
it’s frustrating in how easy it is to do and how annoying it is for developers. arggg!
automatically add #import statements
as a former java and flex developer, it was a pleasure to be able to hit a simple key sequence in eclipse and have imports added automatically. actually, for flex, it’s slightly more tricky, you have to hit control-space right after the class name to do it, but it’s still a guilty pleasure.
while not trivial, i’d love to see xcode have this feature! if it can syntax color the class names, it can add the imports automatically. i can’t explain how much time this would save! please, please!
allow multiple simulators for bluetooth testing
apps that support interaction with nearby phones are great fun! while i’ve never had to write one (thankfully), i’ve seen the pain it causes when testing. you can’t run two simulators at once to do so. it’s silly! with simulator support, more apps would support these cool features! encourage it by allowing a developer to run two separate iphone simulators at once and allowing them to connect.
how cool would that be?
replace the crappy unit testing framework
the native unit testing framework is an abomination. there is no positive feedback that your tests ran, unless you enjoy reading reams of compilation logs. anybody who does unit testing knows how many times they’ve hit the situation where all the tests run fine until they realize, omg, the tests were never actually running!
also, there is no ui. i want to see a green bar. i want to see how many tests ran. i want to know how long it took. tdd developers expect these things as a baseline! i’ve written a new framework, witebox , to replace it and there is also the wonderful ghunit . i’d love to see one of these be the new native standard someday.
allow synthesized override
this one is subtle. say, for example, you create some ivars and properties and then you use the @synthesize command to create the setters and getters for you. as is often the case, you may want to write your own setter so that when a value is set you can change some other data or ui to reflect that. so, you write your own setwhatever() method and…
problem is, you have to then write your own memory management code. if you’ve done iphone coding for a while, you can write it without thinking. but why should i think? what if we could call “super.setwhatever = ” as if the synthesized method still exists? or what if i had a syntax like “synthesized.whatever = ” i could call? that would be nice. then i could focus on the new functionality and not on the setter code that apple is already capable of auto-generating for me.
as it stands now, specifying copy or retain in your property is completely useless if you write your own setter. that seems wrong.
pretty please? i’d be so happy.
prevent project file merges #$&^!
omg, why isn’t this #1? if you’ve ever worked on an iphone project with even one other developer, you likely find yourself doing a manual merge of the project file at least twice a day. it gets scarier with 3 developers, or 4 developers, and so on. many of you out there go it alone and don’t run into this, but i assure you — it’s a nightmare. praying you never have to work with someone else is not a solution.
apple, change your project file format and do something about this nuisance! steve, you hearing me??
native private methods
yes, i know how to use categories to fake it. no, it isn’t pretty. it’s 2010, objective-c should allow for *true* private methods. enough of this “don’t use the private api” stuff. private methods! now!
add ability to create groups as folders
when you add groups, they don’t create folder structure. this often leads to directories full of inter-mixed content in the project folder. it looks nice in xcode, but it would be nice to have a little more order in the source. the only way to map a group to a folder is to manually create the folder yourself and then drag it into xcode. how about allowing us to create a group and then have a checkbox to create a folder as well?
add a super call to loadview already!
minor, but obnoxious enough to make this list. loadview() is the recommended place to add ui elements to a uiviewcontroller derived class. yet, the default template has failed to provide the [super loadview] call for the last year. add it in.
i can’t count how many times i had the infamous recursive call error occur because i forgot to add [super loadview] myself. uggg!
Published at DZone with permission of John Blanco, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.