tags:

views:

210

answers:

1

Hi guys,

     Here I am trying to change the color of the cursor in the Textfield.

Guys please help me hoe to do this.

Anyone's help will be appreciated.

Thank you,

Monish Kumar.

+1  A: 

If you are developing on Mac OS X, then you can try the setInsertionPointColor: method. See NSTextView reference for more details.

Laurent Etiemble
Yes I tried it by using as:[addNewCategoryTextField setInsertionPointColor:[UIColor redColor]];But Im getting the warning as:UITextField may not responds to -setInsertionPointColor
monish
And when I used the function as:[addNewCategoryTextField setInsertionPointColor:[NSColor redColor]];An error is genereted as NSColor not declared use in function.
monish
That was part of my answer: this message only applies to Mac OS X, not the iPhone.In your question, you have not specified the platform you are developing on. So I have assumed that it was Mac OS X...
Laurent Etiemble
Yes Im working on Mac OS X software.
monish
Not if you're using `UITextField` objects you're not. That's iPhone SDK only.
Rob Keniger