Re: NSButton setStringValue

2008-02-28 Thread Ron Fleckner
On 28/02/2008, at 8:15 PM, ali alavi wrote: I am trying to change the title of a push button after each click (eg: to swap between "Play" and "Pause") I am using this code: if(m_isPlaying) { [myButton setStringValue:@"Play"]; m_isPlaying = 0; } else { [myButton setStringValue

Re: NSButton setStringValue

2008-02-28 Thread Apparao Mulpuri
You can use setAlternativeTitle method - Apparao. On 2/28/08, ali alavi <[EMAIL PROTECTED]> wrote: > > I am trying to change the title of a push button after each click (eg: to > swap between "Play" and "Pause") > > I am using this code: > > if(m_isPlaying) > { >[myButton setStringValue:@"P

NSButton setStringValue

2008-02-28 Thread ali alavi
I am trying to change the title of a push button after each click (eg: to swap between "Play" and "Pause") I am using this code: if(m_isPlaying) { [myButton setStringValue:@"Play"]; m_isPlaying = 0; } else { [myButton setStringValue:@"Pause"]; m_isPlaying = 1; } None of abov