Re: self.myTextField.stringValue = @"" fails
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