home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14996 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.3 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!blob
  2. From: blob@Apple.COM (Brian Bechtel)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: TN 306 GetIconSuite glue fatal error
  5. Message-ID: <71998@apple.Apple.COM>
  6. Date: 4 Sep 92 13:48:25 GMT
  7. References: <peter-020992122411@134.7.50.3>
  8. Organization: Apple Computer Inc., Cupertino, CA
  9. Lines: 28
  10.  
  11. peter@cujo.curtin.edu.au (Peter N Lewis) writes:
  12.  
  13. >I just came across this in TN 306:
  14.  
  15. >In the body:
  16.  
  17. >Function GetIconSuite(    Var theSuite: Handle; theID:Integer;
  18. >        theSelector:Longint):OSErr;
  19.  
  20. >In the interface:
  21.  
  22. >FUNCTION GetIconSuite(VAR theIconSuite: Handle;theResID: INTEGER;
  23. >    selector: Integer): OSErr;    INLINE    $303C, $0501, $ABC9;
  24.  
  25. >pascal OSErr GetIconSuite(Handle *theIconSuite,short theResID,short
  26. >selector)= {0x303C, 0x0501, 0xABC9};    
  27.  
  28. >Now, look carefully at the selector ... oooops!
  29.  
  30. >Its suppose to be a LongInt/long, not an integer/short!  The same most
  31. >probabbly applies to ForEachIconDo's selector but I haven't checked it. 
  32. >Its clear it has to be a long, since the svAllMiniData constant that can be
  33. >passed is $00FF0000, certainly not a short value...
  34.  
  35. This will be fixed in the October release of tech notes.  Thanks for
  36. reporting it!
  37.  
  38. --Brian Bechtel     blob@apple.com     "My opinion, not Apple's"
  39.