Hai all,
In my application I need to perform different task , when each item in the combo box is clicked.
I tried ,but it didn't worked.
the code :
-(IBAction)comboselectid)sender
{
if([[combo1 itemObjectValueAtIndex:1] isEqualToString"A"] )
{
[txt uppercaseWord:sender];
}
else if([[combo1 itemObjectValueAtIndex:1] isEqualToString"a"])
{
[txt lowercaseWord:sender];
}
}
here txt is an instance of NSTextView .
the problem is that ,when i click each item of the combobox , only one task is repeated (in this case: uppercase ).
I think, its bcoz of the wrong syntax for selecting the item from the combobox.
please help to solve the problem
thankyou.
In my application I need to perform different task , when each item in the combo box is clicked.
I tried ,but it didn't worked.
the code :
-(IBAction)comboselectid)sender
{
if([[combo1 itemObjectValueAtIndex:1] isEqualToString"A"] )
{
[txt uppercaseWord:sender];
}
else if([[combo1 itemObjectValueAtIndex:1] isEqualToString"a"])
{
[txt lowercaseWord:sender];
}
}
here txt is an instance of NSTextView .
the problem is that ,when i click each item of the combobox , only one task is repeated (in this case: uppercase ).
I think, its bcoz of the wrong syntax for selecting the item from the combobox.
please help to solve the problem
thankyou.