Re: Conceptual MVC Help

2008-05-20 Thread Michael Babin
On May 20, 2008, at 9:41 AM, Johnny Lundy wrote: QUESTION: How would you implement the binding to the model objects "popUpArray" and "selectedGame" so that the popup loads from "popUpArray" and its selection is kept in sync with the property "selectedGame?" Specifically, is there a way to

Re: Conceptual MVC Help

2008-05-20 Thread Erik Buck
Given your class: // Popup.h // TestPopup #import @interface Popup : NSObject { NSArray *popupArray; NSString *selectedGame; } @property (readwrite, copy) NSArray *popupArray; @property (readwrite, copy) NSString *selectedGame; @end To start with, in my opinion you have a brok

Conceptual MVC Help

2008-05-20 Thread Johnny Lundy
Greetings I got my NSPopUpButton working, but have been informed that it is done wrong. The last time I submitted this it had a typo and I was chastised and told to read the Objective-C introduction, so the question wasn't addressed. I'd like to submit this bare-bones example for comment.