• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using setPlaceholderString: in NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >using setPlaceholderString: in NSTextField (From: "C.W. Betts" <email@hidden>)

  • Prev by Date: Continuous animation locks UI?
  • Next by Date: Re: Continuous animation locks UI?
  • Previous by thread: using setPlaceholderString: in NSTextField
  • Next by thread: Continuous animation locks UI?
  • Index(es):
    • Date
    • Thread