Re: using setPlaceholderString: in NSTextField
Re: using setPlaceholderString: in NSTextField
- Subject: Re: using setPlaceholderString: in NSTextField
- From: Gideon King <email@hidden>
- Date: Tue, 7 Sep 2010 14:58:06 +1000
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 (email@hidden)
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:
This email sent to email@hidden