Return Value of ProtoSoupOverview's HitItem Message

One of the Newton 2.x OS Q&As
Copyright © 1997 Newton, Inc. All Rights Reserved. Newton, Newton Technology, Newton Works, the Newton, Inc. logo, the Newton Technology logo, the Light Bulb logo and MessagePad are trademarks of Newton, Inc. and may be registered in the U.S.A. and other countries. Windows is a registered trademark of Microsoft Corp. All other trademarks and company names are the intellectual property of their respective owners.


For the most recent version of the Q&As on the World Wide Web, check the URL: http://www.newton-inc.com/dev/techinfo/qa/qa.htm
If you've copied this file locally, click here to go to the main Newton Q&A page.
This document was exported on 7/23/97.


Return Value of ProtoSoupOverview's HitItem Message (1/6/97)

Q: What is the meaning of the return value of protoSoupOverview:HitItem(...)? I want to call the inherited method and use the return value to determine what action the system performed.

A: ProtoSoupOverview:HitItem(...) returns nil if it handled the tap and non-nil if it didn't handle the tap (the opposite meaning of the return value of protoOverview's HitItem method).

Note that the final NPG documentation implies that protoSoupOverview's HitItem is just like protoOverview's HitItem method; this is a mistake in the documentation.