cocoa-design-patterns
Core Data Best Practice for Importing Data
I\'ve got an application (iPad & Mac Lion) which uses CoreData for its storage. The app imports data from a number of hardware devices, decodes the data into a number of discrete events, and prese[详细]
2023-04-10 02:57 分类:问答Does adding a NSObject into MainMenu.xib creates a singleton object?
Let say I have a NSObject开发者_如何学C AppController:NSObject. Using IB, I drag an NSObject control into MainMenu.xib and points the class to AppController. Since MainMenu.xib is loaded once and obje[详细]
2023-04-08 21:32 分类:问答How do NSCoder and/or NSKeyedUnarchiver handle multiple decodings of the same object?
I was wondering how NSCoder would handle an object that was shared and encoded by multiple objects the next time it was decoded. Will it make two copies of the object, or will one object be decoded an[详细]
2023-04-08 09:18 分类:问答When would a class ever have more than one designated initializer?
Reading through Apple\'s documentation on Tips and Techniques for Framework Developers, I came across this statement about designated initializers:[详细]
2023-04-06 23:34 分类:问答Set view background color according to window state
The standard source view-style side bar used in many Apps (Mail, for instance) has a blue-ish color when the window is active, and another when it is inactive - following the state change of the title[详细]
2023-03-27 19:41 分类:问答How to Set Superview From Outside of Delegate?
I have a weird design pattern for one of my aps where I have a tool bar that acts as a tab bar. Basically I add this toolbar to all of my view controllers, and the tool bar itself contains pointers to[详细]
2023-03-26 13:25 分类:问答Is there a standard, documented, development pattern to create UI layouts similar to iTunes, iCal, iPhoto, etc?
I am new to Cocoa development and I am trying to create UI layouts using what I consider to be the \"standard\" layout that is shared by apps like iTunes, iCal, iPhoto, Billings, 1Password, Numbers, D[详细]
2023-03-25 13:28 分类:问答Objective c: Protocol + Delegate to pass data back from Login form in a Modal View to an tab bar controller view
I\'m developing a tab bar based app for iPhone. The flow is the following: when the app runs, I throw up the modal view with the login form:[详细]
2023-03-25 10:47 分类:问答Implement UIToolBar so it acts like a UITabBar and UIToolBar at the same time
I have an interesting problem. I have an app that I\'m developing that involves photos so screen space is at a premium. Also, using disappearing and reappearing 开发者_如何学Cnav / tool bar controller[详细]
2023-03-25 05:53 分类:问答How do I finish tasks in the background when the tasks is not in AppDelegate?
I have an app with the following hierrachy: - Tab bar controller: - Table view controller -> Some buttons[详细]
2023-03-15 15:53 分类:问答