How does an instance variable in the ObjC code get connected to an interface element in the NIB file?

2008-06-13 Thread Paul Archibald
Comrades: This puzzles me. I am tracing through some code in which I am looking at the value of some selected popup menu items. I am seeing the correct values for them, but I have to confess I don't know how the code is connected to the popup, or just why the code even works! I see the co

Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file?

2008-06-13 Thread Robert Martin
Hint: If you want to ask a question about your code, we're not psychics On Jun 13, 2008, at 5:21 PM, Paul Archibald wrote: Comrades: This puzzles me. I am tracing through some code in which I am looking at the value of some selected popup menu items. I am seeing the correct values for the

Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file?

2008-06-13 Thread Ken Thomases
On jun 13, 2008, at 4:21 PM, Paul Archibald wrote: This puzzles me. I am tracing through some code in which I am looking at the value of some selected popup menu items. I am seeing the correct values for them, but I have to confess I don't know how the code is connected to the popup, or jus

Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file?

2008-06-13 Thread Jens Alfke
On 13 Jun '08, at 2:21 PM, Paul Archibald wrote: This puzzles me. I am tracing through some code in which I am looking at the value of some selected popup menu items. I am seeing the correct values for them, but I have to confess I don't know how the code is connected to the popup, or just

Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file? BACK ON TRACK

2008-06-16 Thread Paul Archibald
Okay, I see them now. I was missing them in the rather long list of outlets (over 130!) for the main controller. I wanted to understand this better because I want to re-factor the code so that there are NOT 135 outlets for one controller. Currently we have two windows that handle different

Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file? BACK ON TRACK

2008-06-16 Thread Erik Buck
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

Re: How does an instance variable in the ObjC code get connected to an interface element in the NIB file? BACK ON TRACK

2008-06-17 Thread Paul Archibald
Well, Erik, you know that sometimes we inherit working code without knowing much about its history. I don't want to break something that already works (and ships), and re-factoring the whole codebase is not part of my charter. I am trying to add my stuff without disturbing the working app.