FROM : Frederick Cheung
DATE : Fri Apr 29 14:21:16 2005
On 28 Apr 2005, at 23:20, Michael Carter wrote:
> Hello all.
>
> I'm writing a Cocoa app (non-Document) in which I'll be maintaining a
> list of Employee objects which will be associated later to a task
> object. In order to add/edit employees I decided to create a separate
> nib file. There is an array in my app controller that contains Employee
> objects. This separate nib has a table view on the left where I show
> all
> the employee objects in the array. Selecting a name on the left will
> display details on the right, which has 8 NSTextFields to hold the data
> which pertains to the employee.
>
>
[snip]
> How best would I handle communicating between the nib and the *emps
> array in my app controller? I have a popup in my main window which I'd
> like to have all the employees show up in. I'm having trouble binding
> that to the *emps array as well.
>
You could set the content of the NSArrayController to your array at
runtime.
Fred
DATE : Fri Apr 29 14:21:16 2005
On 28 Apr 2005, at 23:20, Michael Carter wrote:
> Hello all.
>
> I'm writing a Cocoa app (non-Document) in which I'll be maintaining a
> list of Employee objects which will be associated later to a task
> object. In order to add/edit employees I decided to create a separate
> nib file. There is an array in my app controller that contains Employee
> objects. This separate nib has a table view on the left where I show
> all
> the employee objects in the array. Selecting a name on the left will
> display details on the right, which has 8 NSTextFields to hold the data
> which pertains to the employee.
>
>
[snip]
> How best would I handle communicating between the nib and the *emps
> array in my app controller? I have a popup in my main window which I'd
> like to have all the employees show up in. I'm having trouble binding
> that to the *emps array as well.
>
You could set the content of the NSArrayController to your array at
runtime.
Fred
| Related mails | Author | Date |
|---|---|---|
| Michael Carter | Apr 29, 00:20 | |
| Michael Carter | Apr 29, 02:00 | |
| Frederick Cheung | Apr 29, 14:21 |






Cocoa mail archive

