home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22285 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  2.4 KB

  1. Xref: sparky comp.sys.mac.programmer:22285 comp.sys.mac.system:16714
  2. Newsgroups: comp.sys.mac.programmer,comp.sys.mac.system
  3. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!emory!gatech!darwin.sura.net!newsserver.jvnc.net!gmd.de!Germany.EU.net!mcsun!julienas!babbage!isis!imag.fr!ambone
  4. From: ambone@imag.fr (Ambone Gilles)
  5. Subject: Need help to compare addresses
  6. Message-ID: <C1J8nL.Hzp@imag.fr>
  7. Sender: news@imag.fr (Administration des news)
  8. Nntp-Posting-Host: localhost
  9. Organization: IMAG Institute, University of Grenoble, France
  10. Date: Wed, 27 Jan 1993 21:50:09 GMT
  11. Lines: 54
  12.  
  13. Hi,
  14.  
  15. I had some problem to compare addresses of applications. My system
  16. is composed like that :
  17.  
  18. - one (or more) application, name them 'W'
  19. - one (and only one) background only application, named 'B'
  20. - one (or more) application, name them 'O'
  21.  
  22. Each application can be on any computer (eventually the same) using
  23. system 7 or later (communication by apple event)
  24.  
  25. I wrote library for 'W' and 'O'. This library must help programmers
  26. in writing applications 'W' and 'O', for the moment I develop an
  27. example of these applications, but I will not develop all of them.
  28.  
  29. 1) 'W' get it's own address by sending himself an apple event.
  30. (I don't know how to do it by an other way : I can't use PSN because
  31. application using my library will change and my library must be
  32. very easy to use)
  33.  
  34. 2) 'W' say hello to 'B' sending it an apple event
  35.  
  36. 3) 'B' store the address of 'W', using AEGetAttributePtr on 'addr' field
  37. of the apple event.
  38.  
  39. 4) 'W' send to 'B' his address took in 1)
  40.  
  41. 5) 'B' must compare the two addresses {(1) and (4)} and must see that
  42. it's the same application.
  43.  
  44. 6) 'W' send the address of 'O'
  45.  
  46. 7) 'O' send an apple event to 'B'
  47.  
  48. 8) one again 'B' must see that address (6) and (7) are the same
  49.  
  50. For the moment, all my addresses are TargetID because I use PPCBrowser.
  51. However, the address (1) had only the sender's port name informations,
  52. other fields are null.
  53. the address (3) had the same sender's port name than (1) but sender's
  54. location names are differents.
  55.  
  56. If I try to compare only the sender's port name, I will certainly
  57. have problems with two applications 'W' working on differents computers.
  58.  
  59. Well, actually my comparison is very heuristic, and each time, I found
  60. a case in which my application doesn't work.
  61.  
  62. Could anyone help me to compare two addresses ?
  63. thanks for any help you might give me.
  64.  
  65. Have a good day,
  66.      Gilles.
  67.