Re: COCOA way
Re: COCOA way
- Subject: Re: COCOA way
- From: Scott Anguish <email@hidden>
- Date: Thu, 23 May 2002 02:52:32 -0400
assuming you type in the new value, and then click the add button
just take the value of the field, add it onto the datasource array, and
then reloadData on the tableview...
On Thursday, May 23, 2002, at 02:26 AM, Cristian Savu wrote:
Hi there,
What is the best way to implement in COCOA this 'situation':
I have : - 1 table with 1column
- a corresponding DataSource object which contains <n>
NSString
values
- a field in which I will add a new String
- a button
I need to add a new field in the DataSource.
- In VC++ I would load a pointer to the DS and call a method from
within it
("ds->AddNewField(CString string)") but this doesn't seem very "COCOA
way".
- In COCOA, I think I can send a notification (when the button was
pressed)
to the DS. Is this the way ?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >COCOA way (From: "Cristian Savu" <email@hidden>) |