• 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: working through the "travel advisor" sample
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: working through the "travel advisor" sample


  • Subject: Re: working through the "travel advisor" sample
  • From: "Mark A. Stratman" <email@hidden>
  • Date: Thu, 15 Jul 2004 12:23:10 -0500

It's deceivingly simple ;) Just delete the record from your data source and send the table a reloadData message.

I assume your data source is probably just an NSMutableArray (I don't have the book handy) ? If so, just [array removeObjectAtIndex:row];

-mark

On Jul 15, 2004, at 11:09 AM, John Spicer wrote:

in apple's "Learning Objective-C" book. The part about deleting an item from the list is left as an exsercise for the reader (me).

I assume I have to first figure out which row is currently selected (which I've done). I assume that then I need the contents of the cell so I know which key to use to delete the item from the dictionary.

I can't find a way to do this with the NSTableView class.

I know I'm missing something basic here, can someone point me in the right direction?
_______________________________________________
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.
_______________________________________________
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: 
 >working through the "travel advisor" sample (From: John Spicer <email@hidden>)

  • Prev by Date: Re: Auto Software Update
  • Next by Date: Re: Auto Software Update
  • Previous by thread: working through the "travel advisor" sample
  • Next by thread: Re: working through the "travel advisor" sample
  • Index(es):
    • Date
    • Thread