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

0
votes
1answer
662 views

Best way to update UI when dealing with data synchronization

I'm working on a bug at work. The app is written in Objective-C for iOS based device, for the iPad. I'm the new guy there and I've been given a hard task. Sometimes, the UIButton text property does ...
1
vote
1answer
397 views

Incorporating GoF design patterns in Objective-C without Abstract/Virtual classes

As someone who is becoming more comfortable working in Objective-C I would like to be able to incorporate more design patterns and OOP features in my projects but struggle to implement them as ...
1
vote
1answer
472 views

Optimize strategies for xml parsing?

I am looking for general optimization tips and guidelines for xml parsing. One of the optimization strategies is of course selecting the "right" parser. A detailed comparison between the available ...
3
votes
3answers
3k views

Can I use a child class variables in its parent class?

I am programming in Objective C, iOS. I create a Class A which is a parent class, and Class B inherits to Class A. Now I have Class B variables which I also need to use in Class A. And also one ...
6
votes
2answers
2k views

Do people use const a lot when programming in Objective C?

Related: “sending 'const NSString *' to parameter of type 'NSString *' discards qualifiers” warning Sometimes, I think it's useful though. I may need to pass an a table and want to make sure that the ...
1
vote
2answers
1k views

Ongoing confusion about ivars and properties in objective C

After almost 8 months being in ios programming, I am again confused about the right approach. Maybe it is not the language but some OOP principle I am confused about. I don't know.. I was trying C# a ...
3
votes
2answers
835 views

Is it a good programming practice to have a class with several .h files?

I suppose the class have several different interfaces. Some it shows to some class, some it shows to other classes. Are there any good reason for that? One thing I can think of is with one .h per ...
0
votes
4answers
508 views

Objective-C message passing related queries

I am learning objective-C after having good knowledge of C/C++. I have 2 questions: Are Obj-C message passing and C++ vtable, two different ways of implementing polymorphism or Are they two very ...
9
votes
2answers
2k views

Properties under ARC: Always or public-only?

After reading an article humbly named "The Code Commandments: Best Practices for Objective-C Coding" by Robert McNally a little less than two years ago, I adopted the practice of using properties for ...
3
votes
7answers
1k views

Design patterns: moving object references around an application

I'm new to Programmers and I am looking to increase my knowledge of programming. Recently, a user on Stack Overflow told me using singletons is a bad idea, that they encourage tight coupling and that ...
5
votes
8answers
692 views

Should a class without instance variables be considered a class?

Say you need to implement a few closely related functions that provide a piece of functionality, but there is no need to track any state between those functions, they just sometimes pass some ...
0
votes
2answers
924 views

Mac Applications Developer interview preparation [closed]

I'm a Mac Applications Developer with an experience of 1 year and 8 months. I need to change the company. What type of questions should I expect in an interview? I've worked on 2 projects of which the ...
8
votes
4answers
1k views

Where does Objective-C come from? C++ or C?

I am very confused about this programming language, Objective-C, which I heard is used to develop iOS applications. I know that it uses the principles of OOP. Would it be easier to learn if I already ...
11
votes
4answers
7k views

Where does Objective-C fall in the language performance continuum?

There seems to be a lot of discussion of the various speed merits to C or C++ as compared to say Java or Python, but I rarely see Objective-C mentioned. Roughly where does it fall in terms of language ...
3
votes
2answers
1k views

Who uses GnuSTEP?

This has been a big question lurking at the back of my head. From what I see, GnuSTEP nowadays is primarily a "hobby" project of a small but tightly-knit group of people. However I haven't seen a ...
0
votes
1answer
67 views

Direct Code Support?

A few times in the past I've hit a major wall and simply couldn't progress with a certain aspect of an app as Im a beginner and still learning the ropes (Objective-C specifically). I was curious if ...
3
votes
3answers
741 views

How to speak to a computer [closed]

I am a self-taught, novice programmer. The language I chose was Objective-C, so that I can write Apple applications and software. I have learned the hard way that Objective-C has a steep learning ...
0
votes
2answers
856 views

Is the popularity of Objective-C challenging C++? [closed]

According to TIOBE programming language popularity index for March 2012, Objective-C is now almost as popular as C++. I'm a bit astonished by this fact. I would have expected C++ to be still head and ...
1
vote
1answer
355 views

Is Rule 9 of Object Calisthenics applicable in Objective C?

Rule 9 in Object Calisthenics by Jeff Bay (RTF) is: Rule 9: No getters/setters/properties The last sentence of the previous rule leads almost directly to this rule. If your objects are now ...
2
votes
2answers
3k views

Is this a proper implementation of an iOS MVC pattern?

After browsing the apple docs, I came across this sample of their MVC pattern: Using NSNotificationCenter and without using KVO, would this diagram below represent a correct implementation of the ...
19
votes
7answers
1k views

Continuous Integration : which frequency?

I've always launched builds after each commit, but on this new project, the architects just asked me to change the frequency to "one build every 15 minutes", and I just can't understand why that would ...
3
votes
2answers
368 views

Component Diagram, what's next?

I'm working on an iPhone application and I created a component diagram. I defined interfaces for each component. For example I have an AI component and I have made some interfaces for it. How should ...
5
votes
1answer
343 views

Apple's new compiler

I heard that Apple is going to replace the GNU compiler built into Xcode with a new compiler. What is the new compiler and what type of changes can we expect to see?
2
votes
0answers
202 views

How to become certified in Objective C? [duplicate]

Possible Duplicate: iOS Programming Certifications I am interested in Objective C certification or any certificate than can support me as an iOS developer, what do you recommend?
3
votes
4answers
1k views

Am I supposed to remember code from the book I'm using to learn?

I'm currently using a great book to learn what I need to know about making app's for the iPhone using cocos2d. So far, I am doing great, I read all the code and most of the time, It fits and I ...
0
votes
5answers
842 views

New to Programming/objective c

I've recently started to work on some iPhone apps, starting from a base where I had essentially no programming experience (I studied Maths & had very few programming modules) I worked my way ...
3
votes
5answers
567 views

When is it appropriate to develop a gui application, as opposed to a web application?

I've been thinking about an application that I want to develop for a while now. In short, I want this application to perform some crud operations. The application will be for a law firm so overall ...
3
votes
5answers
811 views

Are design patterns independent of programming languages?

I have been recently working on Objective C and came across use of Delegate pattern. I had seen all the patterns theoretically in Java, thanks to the Head First book. But at times looking at ...
9
votes
3answers
869 views

What is the equivalent of Josh Bloch's “Effective Java” for Objective-C/Cocoa? [closed]

I'm a newcomer to Objective-C and Cocoa but a reasonably experienced Java programmer. When I was starting out, reading Josh Bloch's Effective Java made me a 20% better Java programmer overnight. As ...
5
votes
1answer
593 views

New to iPhone Development - iOS5 Storyboard

I'm new here and pretty new to iOS development. My question is basically, should I learn the old school development methods or just learn how to do things using the latest tools (i.e. Storyboard)? ...
6
votes
3answers
6k views

Is it better to target iOS 5 and ARC or an earlier version with MRC?

I personally don't know much about iOS 5, but it seems like with automatic reference counting (ARC), you get rid of much of the memory management issues of the previous operating systems. So is it ...
2
votes
6answers
2k views

Is Big Nerd Ranch or AboutObjects iOS training worth it? [closed]

I have a CS undergrad degree and have been programming for several years with my current company, messed around with Objective-C by making a few console apps and a few simple apps that I ran in the ...
1
vote
3answers
175 views

Request Information from iPhone/Php developers

recently I hired a freelancer to develop an iPhone application for my website, this application will get information from the DB of the website, normally I should give to him the access to the DB to ...
57
votes
5answers
10k views

Clang warning flags for Objective-C development

As a C & Objective-C programmer, I'm a bit paranoid with the compiler warning flags. I usually try to find a complete list of warning flags for the compiler I use, and turn most of them on, unless ...
4
votes
4answers
832 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 ...
3
votes
3answers
575 views

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

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
328 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
1k 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
214 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
325 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
805 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
5k 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
7k views

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

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
306 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
616 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
633 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
459 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 ...
20
votes
2answers
6k 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 ...
5
votes
7answers
569 views

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

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 ...