• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: COCOA way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: finding text to be drawn in NSTextView drawRect
  • Next by Date: Re: File IO preventing sleep
  • Previous by thread: COCOA way
  • Next by thread: TIFFs and Resolution
  • Index(es):
    • Date
    • Thread