Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objc_msgSend problems on x86



Hi Rosyna,

if (objc_msgSend(string, NSSelectorFromString(CFSTR ("isEqualToString:")), otherString))

The above code produces no error. But it does not work 100% of the time on the ICBMs. It works 100% of the time on the PPCs. Whether it works or not on the ICBMs seems to be a total crapshoot.

When you say it doesn't work does it fail given the same input strings all the time?
What's in the AX register after the call fails? Are AH and AL inverted in some wacky way, as in does AH hold the correct result all the time while AL varies? What happens if you make sure AX is zeroed before the call? Oh, and if you use @"isEqualToString:" does that fix it?


Anyway - it's nutty. :)

Take care,
Guy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >objc_msgSend problems on x86 (From: Rosyna <email@hidden>)
 >Re: objc_msgSend problems on x86 (From: Nicko van Someren <email@hidden>)
 >Re: objc_msgSend problems on x86 (From: Rosyna <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.