Re: Delete Character keydown event
Re: Delete Character keydown event
- Subject: Re: Delete Character keydown event
- From: nick briggs <email@hidden>
- Date: Tue, 15 Nov 2005 09:23:11 +0000
Ken
<-
How can I check for a the delete key being depressed?
->
This works for me
NSString *chars = [event characters];
int i, l = [chars length];
for(i=0; i<l; i++){
unichar c = [chars characterAtIndex:i];
if(c == 127)
{
// erase one object
}
}
Nick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden