views:

50

answers:

1

I would like to have a customizable chooser where many features may be customized. One thing I cannot figure out how to do is change the text of the cancel button. I found that the method setPrompt will change the text of the okay button but I can find no similar method for the cancel button, is there such a method?

+1  A: 

There isn’t a built-in method for it, but you could try iterating through the panel’s content view’s subviews and looking for the button whose action is cancel:, and calling setTitle: on that.

Wevah
Kind of gnarley but it works, thanks! You actually have to look at the subviews of the views of the contentview to find the buttons, but sure enough it worked.
Mike2012