Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Cocoa programming issue
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mystic_fm" data-source="post: 775549" data-attributes="member: 28538"><p>You can't use the equality operator for this test. All it is doing is testing the pointers to the two NSString objects for equality. The same code works with the integer version of the test because integers are simple variables for which the equality operator can be used.</p><p></p><p>(Edit: xstep beat me to it. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> )</p></blockquote><p></p>
[QUOTE="mystic_fm, post: 775549, member: 28538"] You can't use the equality operator for this test. All it is doing is testing the pointers to the two NSString objects for equality. The same code works with the integer version of the test because integers are simple variables for which the equality operator can be used. (Edit: xstep beat me to it. :) ) [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Cocoa programming issue
Top