Or use the ElfDataFuzzy class.

to check it out, Download my ElfData plugin, look in the Examples  
folder, and open Fuzzy.rb

It works on ALL platforms. No declares needed.

> Try playing with aNSRange's endianness.
>
> Marc
>
>> Hello!
>>
>> Since I compile & run my RB app on an Intel machine (RB 2006r4), the
>> Cocoa spellchecker code from Charles (iDeclare) is crashing whenever
>> I try to call objc_msgSend_stret. (see code below)
>>
>> Is there a known issue on Intel machines I have missed?
>> Any clue?
>>
>> Best,
>> Marcel
>>
>>
>>    #if TargetMachO
>>      dim aSelector as Integer
>>      dim aCFText as CFString
>>      dim aNSRange as MemoryBlock
>>
>>      Const cNull = 0
>>      Const cSizeOfNSRange = 8
>>
>>      Declare Sub objc_msgSend_stret Lib CocoaLib (stretAddr as Ptr,
>> aReceiver as Integer, aSelector as Integer, aCFText as Integer,
>> aStartOffset as Integer)
>>
>>      aSelector = Cocoa.Selector("checkSpellingOfString:startingAt:")
>>      aCFText = new CFString("Test")
>>      aNSRange = new MemoryBlock(cSizeOfNSRange)
>>
>>      objc_msgSend_stret(aNSRange, GetNSSpellChecker(), aSelector,
>> aCFText, 0)
>> #endif
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to