home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!blob
- From: blob@Apple.COM (Brian Bechtel)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: TN 306 GetIconSuite glue fatal error
- Message-ID: <71998@apple.Apple.COM>
- Date: 4 Sep 92 13:48:25 GMT
- References: <peter-020992122411@134.7.50.3>
- Organization: Apple Computer Inc., Cupertino, CA
- Lines: 28
-
- peter@cujo.curtin.edu.au (Peter N Lewis) writes:
-
- >I just came across this in TN 306:
-
- >In the body:
-
- >Function GetIconSuite( Var theSuite: Handle; theID:Integer;
- > theSelector:Longint):OSErr;
-
- >In the interface:
-
- >FUNCTION GetIconSuite(VAR theIconSuite: Handle;theResID: INTEGER;
- > selector: Integer): OSErr; INLINE $303C, $0501, $ABC9;
-
- >pascal OSErr GetIconSuite(Handle *theIconSuite,short theResID,short
- >selector)= {0x303C, 0x0501, 0xABC9};
-
- >Now, look carefully at the selector ... oooops!
-
- >Its suppose to be a LongInt/long, not an integer/short! The same most
- >probabbly applies to ForEachIconDo's selector but I haven't checked it.
- >Its clear it has to be a long, since the svAllMiniData constant that can be
- >passed is $00FF0000, certainly not a short value...
-
- This will be fixed in the October release of tech notes. Thanks for
- reporting it!
-
- --Brian Bechtel blob@apple.com "My opinion, not Apple's"
-