Professional Web Applications Themes

Backward delete constant? - Mac Programming

I'm trying to use the delete key (the one above carriage return on the keyboard), but all I find it in the NSEvent constant lists. The closest I come is "NSDeleteFunctionKey", but that turned out to be the key beneath the "help" key. It works, but it's not what I had in mind. The NSResponder class has a "- (void)deleteBackward:(id)sender" method, but I'm not sure how to implement it - nor am I sure it's what I'm looking for. Did I overlook it or is there something special about the backwards delete key? I tried just using "NSBackwardDeleteFunctionKey" and "NSBackwardsDeleteFunctionKey" ...

  1. #1

    Default Backward delete constant?

    I'm trying to use the delete key (the one above carriage return on the
    keyboard), but all I find it in the NSEvent constant lists. The closest
    I come is "NSDeleteFunctionKey", but that turned out to be the key
    beneath the "help" key. It works, but it's not what I had in mind. The
    NSResponder class has a "- (void)deleteBackward:(id)sender" method, but
    I'm not sure how to implement it - nor am I sure it's what I'm looking
    for.

    Did I overlook it or is there something special about the backwards
    delete key? I tried just using "NSBackwardDeleteFunctionKey" and
    "NSBackwardsDeleteFunctionKey" but that didn't help.

    --
    C Lund, [url]www.notam02.no/~clund[/url]
    C Lund Guest

  2. #2

    Default Re: Backward delete constant?

    In <clund-FEDAD7.19072118082003amstwist00.chello.com> C Lund wrote:
    > I'm trying to use the delete key (the one above carriage return on the
    > keyboard), but all I find it in the NSEvent constant lists. The
    > closest I come is "NSDeleteFunctionKey", but that turned out to be
    > the key beneath the "help" key. It works, but it's not what I had in
    > mind. The NSResponder class has a "- (void)deleteBackward:(id)sender"
    > method, but I'm not sure how to implement it - nor am I sure it's
    > what I'm looking for.
    >
    > Did I overlook it
    Yes, you did. It's called NSDeleteCharacter. m.

    --
    matt neuburg, phd = [email]matttidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
    REALbasic: The Definitive Guide! 2nd edition!
    [url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
    Subscribe to TidBITS. It's free and smart.
    matt neuburg Guest

  3. #3

    Default Re: Backward delete constant?

    In article <20030818112629462-0700news.la.sbcglobal.net>,
    matt neuburg <matttidbits.com> wrote:
    > In <clund-FEDAD7.19072118082003amstwist00.chello.com> C Lund wrote:
    > > I'm trying to use the delete key (the one above carriage return on the
    > > keyboard), but all I find it in the NSEvent constant lists. The
    > > closest I come is "NSDeleteFunctionKey", but that turned out to be
    > > the key beneath the "help" key. It works, but it's not what I had in
    > > mind. The NSResponder class has a "- (void)deleteBackward:(id)sender"
    > > method, but I'm not sure how to implement it - nor am I sure it's
    > > what I'm looking for.
    > >
    > > Did I overlook it
    >
    > Yes, you did. It's called NSDeleteCharacter. m.
    I still couldn't find it in NSEvent, so I did a search on it.
    Apparently, I didn't overlook it - I was looking in the wrong place.
    It's in the NSText class.

    --
    C Lund, [url]www.notam02.no/~clund[/url]
    C Lund Guest

  4. #4

    Default Re: Backward delete constant?

    In <clund-63DBD1.08433219082003amstwist00.chello.com> C Lund wrote:
    >> > Did I overlook it
    >>
    >> Yes, you did. It's called NSDeleteCharacter. m.
    >
    > I still couldn't find it in NSEvent, so I did a search on it.
    > Apparently, I didn't overlook it - I was looking in the wrong place.
    With that sort of lawyerly bull nitpicking, you'd make a good
    American President. "It all depends on what your definition of is is." m.

    --
    matt neuburg, phd = [email]matttidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
    REALbasic: The Definitive Guide! 2nd edition!
    [url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
    Subscribe to TidBITS. It's free and smart.
    matt neuburg Guest

  5. #5

    Default Re: Backward delete constant?

    In article <20030819102411756-0700news.la.sbcglobal.net>,
    matt neuburg <matttidbits.com> wrote:
    > In <clund-63DBD1.08433219082003amstwist00.chello.com> C Lund wrote:
    > >> > Did I overlook it
    > >>
    > >> Yes, you did. It's called NSDeleteCharacter. m.
    > >
    > > I still couldn't find it in NSEvent, so I did a search on it.
    > > Apparently, I didn't overlook it - I was looking in the wrong place.
    >
    > With that sort of lawyerly bull nitpicking, you'd make a good
    > American President. "It all depends on what your definition of is is." m.
    Good god, calm down. He's not contradicting your or arguing, just adding
    information.
    Michael Ash Guest

Similar Threads

  1. Delete form - Post data to a table and delete uponsubmit.
    By FusionRed in forum Coldfusion - Getting Started
    Replies: 3
    Last Post: July 28th, 01:27 PM
  2. backward compatibility in 6.0
    By Robert_Tuten@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: April 27th, 03:25 PM
  3. Delete key doesn't delete when datagrid is bound to a disconnected table
    By Fred Zolar in forum ASP.NET Data Grid Control
    Replies: 0
    Last Post: April 1st, 07:47 AM
  4. Backward recovery
    By Péter Alpári in forum Oracle Server
    Replies: 2
    Last Post: July 3rd, 10:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139