Skip to main content

Questions tagged [objective-c]

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.

3 votes
3 answers
758 views

My problem is the following: inside a method I'm creating an object like this: MyObject* myObject = [MyObject new]; Then I want it to perform an asynchronous task like this: [myObject ...
Andrey Chernukha's user avatar
1 vote
2 answers
874 views

I can't find the exact tweet, but it was stated by Apple engineers that the retain and release operations are faster on Intel x86 translation than on standard Intel x86.
Curious's user avatar
  • 95
1 vote
2 answers
269 views

Because of some essential C++ libraries, I have to mix Objective-C and C++ in my code. But the problem is that the callback between C and Objective-C is extremely hard to design and manipulate, so I ...
Patroclus's user avatar
  • 169
4 votes
3 answers
7k views

So basically I am writing a wrapper for a REST API in objective-c so that our customer can easily use them in their iOS development. I am trying to find a good design pattern for this purpose, it ...
Patroclus's user avatar
  • 169
1 vote
1 answer
186 views

To use Strategy Pattern in Objective-C, I think it is mainly by selector. To omit if...else, use Objective-C runtime, convert string matching to choose selector (Strategy). Am my understanding ...
dengApro's user avatar
  • 117
2 votes
0 answers
657 views

There's a large shared object (kind of OpenGL context) in my project. It is accessed from multiple threads. To ensure only one thread at the moments is using SHARED_OBJECT, mutex (kind of ...
olha's user avatar
  • 179
1 vote
1 answer
56 views

Per MVC design pattern as in GOF, "a view can be disabled so that it doesn't accept input simply by giving it a controller that ignores input events". That means, we decide a view first and then pick ...
Saran's user avatar
  • 407
3 votes
3 answers
572 views

My understanding of ISP is that the "client" in the definition (see below) can mean either a class that implements the interface or an instance declared with 1 of the various interface options, based ...
morbidhawk's user avatar
0 votes
2 answers
392 views

So I have a singleton in Objective-C, there's one static method exposed to access the one and only instance: + (id)sharedMyClass { static MyClass* sharedMyClass = nil; static ...
Kevin's user avatar
  • 844
2 votes
2 answers
598 views

Say I have two views (Table View for example) that I'd like them to do different stuff; each loads different data but behaviors are similar for most par except what happens when a cell tapped for ...
TheeBen's user avatar
  • 123
1 vote
0 answers
82 views

I want to understand one thing in plain english that how do I actually use an standard MVC design pattern in iOS App. I know about Modal View and Controller and theoretically I know what they do(...
Ritesh.mlk's user avatar
7 votes
7 answers
3k views

Take C++ constructors for example, we know they don't return values. Why did Bjarne Stroustrup in the beginning decide not to allow constructor returning 'false' to indicate it fails, so that the run ...
user avatar
2 votes
1 answer
986 views

Is there a naming convention for protocols and concrete implementations of them in Objective-C? Specifically regarding a protocol that's used as an abstract 'service' or 'manager' class declaration. ...
Mitch Ware's user avatar
0 votes
1 answer
105 views

Let's say I have a very long method which basically creates a responsive and resizable layout for a user interface by using a few fixed values and a few variable ones taken from an element's ...
Aluminum's user avatar
  • 201
1 vote
2 answers
1k views

I have spent quite some time learning all possible design patterns but I cannot find the ideal one for the following case. I am developing an iOS app where we are using multiple analytics tools like ...
skornos's user avatar
  • 121

15 30 50 per page
1
2 3 4 5
13