Objective-c is a highly dynamic message-based object-oriented language, superset of C, that is a primarily used for programming Apple's Mac OS X and iOS platforms.

learn more… | top users | synonyms

4
votes
4answers
1k views

Best practices for upgrading user data when updating versions of software

In my code I check the current version of the software on launch and compare it to the version stored in the user's data file(s). If the version is newer, then I call different methods to update the ...
2
votes
3answers
637 views

Is there ever a reason to use C++ in a Mac-only application? [closed]

Is there ever a reason to use C++ in a Mac-only application? I not talking about integrating external libraries which are C++, what I mean is using C++ because of any advantages in a particular ...
3
votes
1answer
1k views

When should I use static variables with primitive types?

Recently I came across the question NSString: Why use static over literal? and in the comments arrived a new question. In Objective-C there some "special" types that are just maps to C primitives. ...
4
votes
3answers
353 views

Which of these algorithms is best for my goal?

I have created a program that restricts the mouse to a certain region based on a black/white bitmap. The program is 100% functional as-is, but uses an inaccurate, albeit fast, algorithm for ...
4
votes
3answers
2k views

Objective-C As A First OOP Language?

I am just finishing the second semester of my CS degree. So far I learned C, all the fundamental algorithms and data structures (e.g., searching, sorting, linked lists, heaps, hash tables, trees, ...
1
vote
4answers
224 views

Some advice in open sourcing objective-c code? [closed]

I've been working on an iPhone app for the past month and am interested in open sourcing some of its code. I built a few categories that others might find useful for generating filler data during ...
2
votes
1answer
355 views

Are Blocks Second-Class Citizens in Objective-C (vs. Ruby)?

Feeling slightly witty the other day, I wrote an eachWithIndex: method in a NSArray category. It has a typedef like this: typedef void (^processItem)(id item, int index); and the method looks like ...
15
votes
2answers
938 views

Does objective-c's method overhead make a 'many small methods' design approach inadvisable?

I generally favour using small methods, as recommended by, amongst others, Bob Martin in Clean Code. I've also read enough about Objective-C's internals to have at least some idea about how its ...
7
votes
5answers
9k views

Why do we need to write a header file?

Before you whip out your snarky comments, I know -- this is a nooby question. This is my first time using a C based language. I'm an undergrad student learning Objective C for a computer science ...
4
votes
3answers
9k views

As an iOS developer, what type of technical interview questions should you be prepared with? [closed]

I just finished a technical interview yesterday and the interviewer asked about graph theory, data structure, and traversals. This has nothing to do with iOS stuff. So I came un-prepared. This was ...
3
votes
3answers
329 views

Do simple accessors and mutators benefit from commented block headers?

Short Question Is it necessary to add the function header comments for simple accessors and mutators? Example u8 OBJ_get_state_x(void) {return obj.state_x;} void OBJ_set_state_x(u8 x) ...
5
votes
1answer
706 views

How can I manage my ViewControllers in my game?

I'm building a very simple iOS game that doesn't require any fancy OpenGL; I'd like to stick with Core Graphics & Core Animation. I'd like to make this a fullscreen game, and my question is of ...
1
vote
3answers
678 views

Warning-free Objective C code

I am currently creating my first iPhone app in Objective C and getting a lot of warnings because I've in many places taken advantage of the fact that Objective C is a dynamically typed language. I get ...
3
votes
3answers
546 views

Avoiding wrapper objects in collections

I'm getting a little annoyed of having to wrap primitive types in wrapper objects to store them in collection data structures (sets, maps, lists, etc.) in languages like Java and Objective C. I'd ...
24
votes
2answers
7k views

Why is Objective-C not widely used beyond Cocoa environments?

Objective-C features nice object orientation, simplicity, elegance, and (as a superset of C), low level ability. It could seem like the simple, modern alternative to C++ that many people look for and ...
4
votes
5answers
627 views

iPhone development options for the [from-my-cold-dead-hands] C developer [closed]

Please forgive the humor of the title but it certainly gets my point across. I am quite familiar with C code, I can write it in my sleep and after reading through a few tutorials on iPhone ...
2
votes
4answers
1k views

Is Independent Java Development Worth it Compared to Objective-C? [closed]

First I would like to say that I'm not developer, but I love to code whenever I can. I mainly use Perl which is the language I use when doing System Administration. For different reasons (that I'm ...
6
votes
1answer
3k views

Is Objective-C an Interpreted or Compiled language?

I want to know if Objective-C is an interpreted or a compiled language.
1
vote
3answers
3k views

iOS developer interview question doubts [closed]

How deep should an iOS developer review data structure & algorithm when preparing for iOS job interview position? I know most people would just say there's no harm in reviewing it, but would like ...
2
votes
1answer
425 views

How can a Silverlight app talk to another app on a Mac?

Is there any way that a Silverlight out-of-browser app can communicate with another app (for example an Objective-C app) installed on a Mac? Any help or suggestion will be highly appreciated.
1
vote
1answer
552 views

Views, View Controllers, Properties and Object-Oriented Programming

I'm new to OOP, having been a procedural programmer for many years. I'm learning iOS development in Objective-C and could use some clarity on when and how objects and properties are used. Say I have ...
1
vote
6answers
723 views

i am “scared” to learn a new language

I have be developing in c# for the last about the last 8 years. I feel that i am quite experienced and knowledgeable in the whole .net platform. I have got to the point where i want to start learning ...
12
votes
7answers
856 views

Getting My Head Around Immutability

I'm new to object-oriented programming, and one concept that has been taking me a while to grasp is immutability. I think the light bulb went off last night but I want to verify: When I come across ...
2
votes
6answers
328 views

How feasible would it be to not work for anyone, my entire programming career? [closed]

Assume I have enough money to live off of for 3 months. Would it be impossible to just freelance my entire programming career, after sufficiently learning the language and helping open source ...
1
vote
5answers
864 views

Objective-C and C++ [closed]

Awhile back I posted a question about a kid I know and his dilemma about getting a college degree. He has decided to go for it and apparently already has some credits in computer science and math ...
8
votes
3answers
3k views

Is objective-C++ being phased out? [closed]

Is apple phasing out support for objective-c++? Note the following: In the Objective-C language manual, there used to be a section on mixing objective-c and c++. That section is now missing. Links ...
3
votes
2answers
693 views

Better to use one large plist or many small plists when developing for iOS?

I'm creating a simple "find one of our locations" app for iOS 4, for which I have a list of >70 places, complete with addresses, business hours, etc. Is it better to put all of this data in one large ...
4
votes
1answer
2k views

Pragma Mark in Cocoa

I'm a newb to cocoa programming and looking around in various open source code online I see things like: #pragma mark global variable declaration and I was wondering what the meaning of "pragma ...
3
votes
4answers
6k views

Which language is the most flexible for scraping websites? [closed]

I'm new to programming. I know a little python and a little objective c, and I've been going through tutorials for each. Then it occurred to me, I need to know which language is more flexible (python, ...
7
votes
5answers
641 views

Does language endorsement by different platforms (Android, iOS) hurt app development?

Developing iOS or OSX based applications typically requires knowledge of Objective C, since XCode is highly tailored to this language. Android, on the other hand, has chosen Java as it's preferred ...
5
votes
5answers
383 views

When designing a protocol, is it better for a method to accept a single object of a specific type, or an array?

I'm currently designing a protocol for internal use, so it doesn't make a huge difference in this particular case, but it got me wondering: Is it better for a method to accept a single object of a ...
9
votes
9answers
1k views

Which Programming Languages Support the Following Features? [closed]

My personal programming background is mainly in Java, with a little bit of Ruby, a tiny bit of Scheme, and most recently, due to some iOS development, Objective-C. In my move from Java to Objective-C ...
3
votes
4answers
1k views

Objective-C Categories and Sprawling Classes

The generally accepted programming practices I've come across tend to advise against big, sprawling classes. Does using Objective-C categories change the conventional wisdom somehow? Is it more ...
6
votes
2answers
1k views

Observing MVC, can/should the Model be instantiated in the ViewController? Or where?

I'm writing an experimental iPhone app to learn about the MVC paradigm. I instantiate my Model class in the ViewController class. Is this stupid? I'm asking because storing the id of the Model class, ...
1
vote
3answers
357 views

I want to write a Todo list application for mac but I only have experience with C++ [closed]

Do I learn objective C? Is using Cocoa the easiest and best way to make a UI?
4
votes
2answers
5k views

Would knowing Python help with creating iPhone applications?

Here is what the apple site says: With Snow Leopard, Mac OS X makes it easy to use scripting languages as full application development tools. Snow Leopard ships with support for the ...
5
votes
1answer
431 views

Stuff a lead developer for an Objective-C team should know

Advice on being a lead developer is welcome. Advice on being a lead developer of an Objective-C team more so. Unfortunately, I don't have experience in Objective-C (I suppose the first thing to do ...
3
votes
6answers
2k views

What are the Most Important things to know about iPhone Development? [closed]

For example I just learned today about NARC. Never release something unless you made it "New, Alloced, Initialized or Copied". That just fixed a couple different bugs in my app that I couldn't find. ...
0
votes
3answers
576 views

What guidelines do you suggest for using Objective-C Properties?

Objective-C 2.0 introduced properties. While I personally think properties are nice addition to the language, I have seen a trend of making every instance variable as a property. Apple sample codes ...
12
votes
4answers
5k views

Best book to learn objective C for experienced programmers [closed]

I am an experienced C#/C++ developer. What is the best book to learn Objective C for programmers like me? PS: I interested in developing for the iPhone.
1
vote
1answer
338 views

What is a good C or Obj-C framework for manipulating Git Repositories?

What Obj-C/C libraries have you used for manipulating git repos in your Mac apps? I am working on a Mac app that I would like to be able to clone and modify git repos. Using git directly is not an ...
25
votes
5answers
7k views

MonoTouch vs Objective-C for iPhone/iPod/iPad development [closed]

For someone with .Net experience and wanting to develop for iPhone/iPod/iPad, is it worth learning Objective-C? Is MonoTouch a good alternative? What are some of the trade-offs when using MonoTouch vs ...