Tagged Questions
3
votes
2answers
841 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 ...
2
votes
2answers
1k views
Programming against a protocol in Objective-C
I stumbled accross the SOLID principles. There is one burning question. Should I always use protocols? I never saw someone using them in the way that a Java developer would use them.
I tried it in a ...
1
vote
2answers
801 views
Adhering to a protocol and being a subclass at the same time?
In objective C, I have a situation where I would like to have an abstract protocol (interface) with 5 methods and 4 properties, but at the same time, I'd like to have a common implementation of 3 of ...
0
votes
0answers
48 views
Use Objective-C protocols like Java interfaces [duplicate]
I'm a Java developer moving to Objective-C.
So far in Objective-C I've seen protocols used extensively to implement the delegate pattern, but I haven't seen then to add a layer of abstraction in the ...