On Oct 12, 2006, at 9:55 PM, Richard wrote:
On Oct 12, 2006, at 9:52 PM, Charles Yeomans wrote:
On Oct 12, 2006, at 9:46 PM, Richard wrote:
Hello All,
Here is the code I have in handleappleevent
If EventClass="aevt" and EventID="rapp" then
AppWindow.Show
End If
When I compile for Universal, it no longer opens my app while it
is running if i click on the dock icon. Also, Menu Bar / File /
Open no longer works either. Is there another event I need to
watch for on Intel?
If it works on a PPC machine but not an Intel machine, I'd be
thinking you've encountered a known bug in which the
HandleAppleEvent parameters are backwards in Intel builds.
Charles Yeomans
It works when I build just for PowerPC but not when I build for
Intel. How do I go about reversing the parameters to make it work?
Do this --
#if targetLittleEndian
dim m as MemoryBlock = eventClass
dim fourCharCode as new MemoryBlock(4)
fourCharCode.LittleEndian = false
fourCharCode.UInt32Value(0) = m.UInt32Value(0)
eventClass = fourCharCode
#endif
Then do the same thing for the eventID parameter. It would be
possible to extend this code to detect a bug fix, should one ever be
made.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>