NSTableView rows and delete key
NSTableView rows and delete key
- Subject: NSTableView rows and delete key
- From: Raphaël Delcroix <email@hidden>
- Date: Thu, 25 Jul 2002 17:05:04 +0200
Hello,
I can't find anything in the NSTableView documentation about this,
although it could be already implemented, as it is a very frequent
feature in applications.
I would like that, if a row (or rows) is/are selected (so if the table
view is the current key view, if I understand well),
if the user presses the backspace button on keyboard, it deletes the
row(s) concerned.
I read the 'deleting multiple rows' topic on the list, but what I need
is more essential :
Do I just need to activate this as an option ?
Do I need to receive a delegation/notification ? (I don't want to create
a 'delete' NSButton, which would be very easy, of course); I cannot
find any delegation/notification about key pressed.
Do I really need to subclass NSTableView to do so ? (for such a basic
feature ?)
If necessary, can I know if the table view is the current active key
view ?
Finally, a philosophical question : is there always a lot of ways to do
a single thing in Cocoa (as in Perl, for example), or are there cases
where there is only one possible way ?
Well, I'm sorry for this flow of (maybe stupid) questions, but things
are not yet totally clear for me in Cocoa.
Thanks,
R.D.
_______________________________________________
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.