cocoa-design-patterns Questions

3

Solved

I am coming from iOS background and starting to learn Cocoa. On iOS unless we have multiple targets for iPad and iPhone we usually have one Window and manage the screen using UIViewControllers. Whe...

4

Solved

I'm having multiple viewcontrollers (in a navigation stack or maybe not) and each controllers collects some data based on users input. In the end I need to use those data in the last controller. S...

4

Solved

I have created objects that are interfaces to a web service. One typical object would be a "TaskService". When a client uses one of these objects, it invokes one of the service's methods (such as "...
Pitterpatter asked 31/1, 2012 at 22:28

9

Solved

I have an iPhone application that has a MainWindow.xib holding a UITabBarController, which in turn has a UINavigationController and a custom UIViewController subclass in its ViewControllers array. ...

3

Solved

After programming for sometime with the iOS and Mac objective C frameworks, I have come to love the generic notification pattern implemented by the NSNotificationCenter and NSNotification classes. ...

5

Solved

I was reading that NSArray is just such a thing. Sounds heavy. I have 7 really fat books here on my desk about Objective-C, Cocoa and C. None of them mention Class Cluster at all, at least I can't ...
Bibliolatry asked 4/12, 2009 at 0:48

4

What are the differences between Delegate & Delegate Methods and what are their uses?
Schaffner asked 24/11, 2009 at 5:38

1

Solved

Reading through Apple's documentation on Tips and Techniques for Framework Developers, I came across this statement about designated initializers: A designated initializer is an init method of a...
Thoraco asked 21/9, 2011 at 14:56

3

Solved

I am facing a very regular scenario. I have an NSArray which has object of a custom type, say Person. The Person class has the attributes: firstName, lastName and age. How can I get an NSArray co...

6

Solved

I have some inefficiency in my app that I'd like to understand and fix. My algorithm is: fetch object collection from network for each object: if (corresponding locally stored object not found):...

2

Solved

I have an NSArrayController, companiesController bound to a top level Core Data entity, Companies. A Company has many Department's, and a Department has many Employee; these are represented by th...

1

Solved

Hi I am a java developer and these days I have also started working on iphone development. I was wondering that Java's command pattern is somewhat similar to delegate pattern in iphone or vice-ver...
Teece asked 23/12, 2010 at 5:38

2

Solved

Our app must display a big chunk of data with minimal remote http requests, so we have added an endpoint to our backend that provides all the necessary data as a single json response. This results ...
Addieaddiego asked 4/12, 2010 at 4:27

3

Solved

I wanted to ask you all for you opinions on code smells in Objective C, specifically Cocoa Touch. I'm working on a fairly complex game, and about to start the Great December Refactoring. A good nu...
Cowie asked 9/12, 2010 at 6:27

2

Solved

What does performSelector do? What is the difference between creating a new NSThread and the performSelector method? How it works and where should we use it?
Spragens asked 30/11, 2010 at 12:43

4

Solved

I have a simple query that I'd like cleared up by someone... Is it bad-practice to retain self? I have a server request object that I'd like to make. I'd like to be able to use it in the following...
Bromism asked 17/10, 2010 at 13:36

3

I am trying to write a Core Data application for the iPhone that uses an external data source. I'm not really using Core Data to persist my objects but rather for the object life-cycle management. ...
Meehan asked 17/7, 2009 at 20:25

2

Solved

2

Solved

I run into design choices like this often and struggle a bit; I'm looking for some other perspectives. I often want to keep lists of, or pass around chunks of state that are basically just sets of...

2

Solved

I'm having issues understanding the concept of outlets how the iPhone deals with events. Help! Delegates confuse me too. Would someone care to explain, please?
Abstracted asked 15/1, 2010 at 0:33

3

Solved

Let's say I'm building a new class for the iPhone in Objective-C. In one of my init methods I want to manually allocate some memory. So, I might have something like this: - (id)initWithSomeObject:...
Lazulite asked 6/1, 2010 at 22:27

3

Solved

I've been looking at the documentation on Core Data and trying to figure out how to arrange the Core Data Stack so it's accessible to all of my UITableViewControllers. All the examples provided by ...
Dravidian asked 15/12, 2009 at 15:30

1

Solved

I am trying to implement a Core Data backed UITableView that supports indexing (eg: the characters that appear down the side, and the section headers that go with them). I have no problems at all i...

3

Solved

I have a dictionary of objects; they are all POCO objects that should be serializable. What technique should I look at for writing these to disk. I'm looking for the simplest option to write a few ...

1

This seems like a typical problem, but I have a UITableView that has identical behavior for two separate data sources. What is the best way of going about designing the class hierarchy to have as l...
Metheglin asked 6/1, 2009 at 18:46

© 2022 - 2024 — McMap. All rights reserved.