FROM : Erik Buck
DATE : Mon Jun 16 22:40:46 2008
Over 130 outlets! Holy Sassafras Tea! That is ten to fifteen times more outlets than I have ever seen in a single class in 20 years of Objective-C programming!
I suspect you are doing something very wrong.
First, use the Model-View-Controller pattern. Don’t store application state or Model data in the View.
Second, use patterns like “data source” and objects like NSTableView and NSMatrix and NSColectionView to structure user interfaces that require lots of objects.
Regarding the original question: “How does an instance variable in the ObjC code get connected to an interface element in the NIB file?”
I was hoping someone would point out the answer that was provided in this forum one month before this question was asked (again):
http://www.cocoabuilder.com/archive/message/cocoa/2008/5/15/206771
DATE : Mon Jun 16 22:40:46 2008
Over 130 outlets! Holy Sassafras Tea! That is ten to fifteen times more outlets than I have ever seen in a single class in 20 years of Objective-C programming!
I suspect you are doing something very wrong.
First, use the Model-View-Controller pattern. Don’t store application state or Model data in the View.
Second, use patterns like “data source” and objects like NSTableView and NSMatrix and NSColectionView to structure user interfaces that require lots of objects.
Regarding the original question: “How does an instance variable in the ObjC code get connected to an interface element in the NIB file?”
I was hoping someone would point out the answer that was provided in this forum one month before this question was asked (again):
http://www.cocoabuilder.com/archive/message/cocoa/2008/5/15/206771
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

