Re: Using a keyboard to push a button

2010-05-06 Thread Seth Willits
On May 6, 2010, at 6:11 AM, Travis Siegel wrote: In Interface Builder, select the button and then use the Attributes inspector to set its key equivalent. (Click the box to the right of “Key Equiv.:” and press the Enter key.) And for those of us who can't use interface builder, how would

Using a keyboard to push a button

2010-05-05 Thread Benjamin Navarro
Hi, I've just realized my first graphic application in Cocoa. It works great, there are 3 textField and 2 static text and when I push a button, the program calculate the two values to put in the static texts using the text fields. My problem is that I have no idea how can I use the Enter

Re: Using a keyboard to push a button

2010-05-05 Thread Seth Willits
On May 5, 2010, at 3:46 AM, Benjamin Navarro wrote: Hi, I've just realized my first graphic application in Cocoa. It works great, there are 3 textField and 2 static text and when I push a button, the program calculate the two values to put in the static texts using the text fields. My

Re: Using a keyboard to push a button

2010-05-05 Thread Jens Alfke
On May 5, 2010, at 3:46 AM, Benjamin Navarro wrote: My problem is that I have no idea how can I use the Enter keyboard key to press the button (make a kind of shortcut). In Interface Builder, select the button and then use the Attributes inspector to set its key equivalent. (Click the box

Re: Using a keyboard to push a button

2010-05-05 Thread Seth Willits
On May 5, 2010, at 2:05 PM, Jens Alfke wrote: In Interface Builder, select the button and then use the Attributes inspector to set its key equivalent. (Click the box to the right of “Key Equiv.:” and press the Enter key.) On May 5, 2010, at 2:03 PM, Seth Willits wrote: Set the action of