It's an NSTextFieldCell method not an NSTextField method. Try [[myTextField 
cell] setPlaceholderString:@"whatever"];


Regards

Gideon

On 07/09/2010, at 7:49 AM, C.W. Betts wrote:

> I would like to set it so that I can set the placeholder string 
> programmatically.  However, when I do it, I get a warning at compile time and 
> an error at runtime:
> 2010-09-06 15:42:01.617 System Preferences[50199:a0f] -[NSTextField 
> setPlaceholderString:]: unrecognized selector sent to instance 0x200c2a220
> Is there a way to use setPlaceholderString: on an NSTextField?
> 
> _______________________________________________

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to