Re: working through the "travel advisor" sample
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.