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.
1
vote
0answers
65 views
Design pattern for locking asynchronous operations in Objective-C
I'm writing my first Objective-C Class. It's responsible for interaction with an HTTP SSO authentication service.
The process requires multiple HTTP transactions in order to complete. The Class acts ...
2
votes
1answer
166 views
When to use embedded script language?
I already read some post about the why use embedded script language but I want to ask when to use it.
I have implemented an Objective-C / Javascript binding framework which allow me to write ...
0
votes
6answers
100 views
What are the reasons to create UIView subclass?
I've noticed that there are a lot of UIView subclasses in my legacy project. Mostly the only reason of such a subclass is to split bigger view into custom subviews and provide layout for its subviews ...
7
votes
3answers
164 views
Where should I put methods that make an Http Request to get data from a web service in iOS development?
I have a Model Car in my iOS application where it's parameters like name, year, value etc are fetched from a web service in order to fill a list with cars data.
Where should I put the method that ...
3
votes
3answers
212 views
In Objective C, what English words can I conceptually associate to the symbols?
I'm learning Objective C (from a C# background) and am having difficulty understanding the unusual method signatures and am looking for a shortcut to make the learning curve less steep.
When reading ...
2
votes
2answers
131 views
Is state pattern a good solution for implementing UI changes for Landscape and Portrait modes?
For our iOS app, a lot of complicated UI logic depends on the interface orientation of the ViewController. This conditional logic is present in a lot of places.
Can it be segregated into different ...
0
votes
1answer
85 views
Apple Dispatch Queue vs Threads
I've heard a lot about apple's famous dispatch queues and the GCD but today was the first time I decided to understand exactly what is going on, so I started reading Concurrency Programming Guide and ...
0
votes
4answers
252 views
What can I do without the iPhone SDK and Xcode? [closed]
I want to develop an iPhone application, I do not have Xcode nor the iPhone SDK (nor a macbook but I plan to buy one). What could be done without those products?
Edit: I intend to release it on ...
2
votes
4answers
120 views
What is the proper way to store an object with many attributes in Objective-C?
I have an object that I am downloading over HTTP, that has approximately 50 attributes. What is the proper way to store this information in Objective-C? Should I have an NSObject with a property for ...
22
votes
3answers
859 views
Is it considered a bad practice to add logic in a property setter?
I jumped in to a project and I see that the other developers are adding a lot of logic in the setters of synthesized properties.
I understand how this works, but I think that it makes it hard to ...
3
votes
3answers
184 views
Why use protocol, not call the method directly?
I was asked this question in an interview. For eg: UITableviewDelegate protocol has CellForRowAtIndexpath. Why make it a delegate method in a protocol not a method in the UITableView class and call it ...
2
votes
2answers
222 views
High Schooler learning to program (Objective C) on my own — What are the essential things I need to learn? [closed]
About a year and a half ago I became interested in learning to program (specifically, iOS). Since my school currently lacks computer science classes (well next year they say they might have one using ...
0
votes
1answer
77 views
Which is faster NSDictionaries or object properties?
If I abandon creating model objects which I only use to pass information and use NSDictionaries instead and have constant for keys in the same place where I am using the model, then does it have any ...
1
vote
2answers
129 views
Why do we use networking libraries instead of plain NSURLRequests and NSURLConnection ?
in iOS development, I have often seen people creating a networking module to interact with their APIs.
This module generally sits on top of a networking framework like MKNetWorkKit or AFNetWorking.
...
0
votes
1answer
138 views
Truth condition testing with BOOL
BOOL myBool;
myBool = YES;
...
if (myBool) {
doFoo();
}
I have read that because there are instances where the above does not actually call the doFoo() function, it is best to instead always test ...