Professional Web Applications Themes

NB: CurrencyConverter tutorial - Mac Programming

I've entered the Currency Converter tutorial and the only issue that I have with the tutorial is that when I hit enter, my perception is that the focus should be moved to the 'amount in dollars" NSTextField. This is not happening. The only time that the focus changes is when I actually click on the convert button. Has anyone gone through the tutorial and had the same results? Does the selectText method of the NSTextField actually change the focus to that field or is there another method that should be used? Again, the method seems to work if I click ...

  1. #1

    Default NB: CurrencyConverter tutorial

    I've entered the Currency Converter tutorial and the only issue that I
    have with the tutorial is that when I hit enter, my perception is that
    the focus should be moved to the 'amount in dollars" NSTextField.
    This is not happening. The only time that the focus changes is when I
    actually click on the convert button. Has anyone gone through the
    tutorial and had the same results? Does the selectText method of the
    NSTextField actually change the focus to that field or is there
    another method that should be used? Again, the method seems to work
    if I click on the button, but not when I hot enter. I'm confused.
    thanks.
    matthew schouppe Guest

  2. #2

    Default Re: NB: CurrencyConverter tutorial

    [email]mschoupexcite.com[/email] (matthew schouppe) wrote in message news:<be11921e.0309161911.45df35fcposting.google. com>...
    > I've entered the Currency Converter tutorial and the only issue that I
    > have with the tutorial is that when I hit enter, my perception is that
    > the focus should be moved to the 'amount in dollars" NSTextField.
    > This is not happening.
    That's just the way it works. The Tab key moves from field to field,
    but the Enter key does not. Switching based on the Enter key is not
    done by default. I guess this is because some UI's might want to
    have Enter switch focus, while others may want it to press a button.
    Eric Pepke Guest

  3. #3

    Default Re: NB: CurrencyConverter tutorial

    In article <ef37f531.0309171452.5fb3de27posting.google.com >,
    [email]epepkeacm.org[/email] (Eric Pepke) wrote:
    >mschoupexcite.com (matthew schouppe) wrote in message
    >news:<be11921e.0309161911.45df35fcposting.google .com>...
    >> I've entered the Currency Converter tutorial and the only issue that I
    >> have with the tutorial is that when I hit enter, my perception is that
    >> the focus should be moved to the 'amount in dollars" NSTextField.
    >> This is not happening.
    >
    >That's just the way it works. The Tab key moves from field to field,
    >but the Enter key does not. Switching based on the Enter key is not
    >done by default. I guess this is because some UI's might want to
    >have Enter switch focus, while others may want it to press a button.
    Enter shouldn't ever switch focus. It's just used for entering.
    The 'tab' key is the right key to switch focus, and it does an
    implied 'enter' if and only if you changed the contents of the
    field while you were in it.


    Simon Slavin Guest

Similar Threads

  1. best tutorial?
    By hogsmeade in forum Macromedia Director 3D
    Replies: 1
    Last Post: April 22nd, 08:21 AM
  2. ASP Tutorial
    By Scrappy in forum ASP Database
    Replies: 2
    Last Post: February 25th, 08:10 AM
  3. Pup Tutorial??
    By carinetd webforumsuser@macromedia.com in forum Macromedia Fireworks
    Replies: 5
    Last Post: October 14th, 12:18 AM
  4. SSL tutorial
    By Madhusudan Singh in forum PHP Programming
    Replies: 0
    Last Post: June 29th, 08:46 AM
  5. WZ2K Tutorial Update - Latest Dynamic Dreamweaver video tutorial
    By Psmeg in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: June 26th, 08:29 PM

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