• 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: self.myTextField.stringValue = @"" fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: self.myTextField.stringValue = @"" fails


  • Subject: Re: self.myTextField.stringValue = @"" fails
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 08 May 2012 09:54:09 -0700

On May 8, 2012, at 9:28 AM, Charlie Dickman wrote:

> @"" is the nil string and the compiler is smart enough to make the substitution.

Um … pardon me, but WTF? There is no such thing as a “nil string” object. @“” is a perfectly valid NSString instance with a non-nil pointer. It just happens to contain zero characters. The compiler is absolutely not going to replace it with a nil pointer.

I don’t know what the problem is in the OP’s code, but I wanted to reply ASAP to quash the idea of a “nil string” substitution.

—Jens
_______________________________________________

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: 
 >self.myTextField.stringValue = @"" fails (From: Antonio Nunes <email@hidden>)
 >Re: self.myTextField.stringValue = @"" fails (From: Charlie Dickman <email@hidden>)

  • Prev by Date: Re: saveDocument:
  • Next by Date: Re: self.myTextField.stringValue = @"" fails
  • Previous by thread: Re: self.myTextField.stringValue = @"" fails
  • Next by thread: Re: self.myTextField.stringValue = @"" fails
  • Index(es):
    • Date
    • Thread