Re: Newbie query re default buttons

2008-05-22 Thread Robert Cerny
Hi, could you send me your project off list? I will check it and let you know what's wrong. (If I find it of course) Robert On 22.5.2008, at 19:39, Michael McLaughlin wrote: Robert Cerny wrote: Just FYI, [myButton setKeyEquivalent:@"\r"]; is the correct way to set button to Default. A

Re: Newbie query re default buttons

2008-05-22 Thread Michael McLaughlin
>Robert Cerny wrote: >Just FYI, >[myButton setKeyEquivalent:@"\r"]; is the correct way to set button to >Default. Are you sure that speakButton is not nil? The button is OK. I found that I could get the button to work by entering the Return key equivalent in IB, stubbing out awakeFromNib. Howev

Re: Newbie query re default buttons

2008-05-22 Thread Robert Cerny
Just FYI, [myButton setKeyEquivalent:@"\r"]; is the correct way to set button to Default. Are you sure that speakButton is not nil? Robert On 22.5.2008, at 16:51, Michael McLaughlin wrote: As a Cocoa newbie (after years of Carbon), I am working my way through the 3rd edition of Hillegass'

Re: Newbie query re default buttons

2008-05-22 Thread Robert Cerny
Hi, could you simply add the default flag in IB? 1. select the button 2. Hit -1 to bring up Inspector pane 3. Click the dark grey rectangle next to "Key Equiv." 4. Hit Enter HTH Robert On 22.5.2008, at 16:51, Michael McLaughlin wrote: As a Cocoa newbie (after years of Carbon), I am working my

Newbie query re default buttons

2008-05-22 Thread Michael McLaughlin
As a Cocoa newbie (after years of Carbon), I am working my way through the 3rd edition of Hillegass' book. I finished his SpeakLine example then thought I'd challenge myself by making the Speak button the default button -- but failed. I coded the following *** AppController.h @interface AppCont