• 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: objc_msgSend problems on x86
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objc_msgSend problems on x86


  • Subject: Re: objc_msgSend problems on x86
  • From: Guy English <email@hidden>
  • Date: Sat, 11 Feb 2006 02:30:36 -0500

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:
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>)

  • Prev by Date: frontmost document window (of all running apps)?
  • Next by Date: Re: frontmost document window (of all running apps)?
  • Previous by thread: Re: objc_msgSend problems on x86
  • Next by thread: Re: objc_msgSend problems on x86
  • Index(es):
    • Date
    • Thread