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
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
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