Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / CyberPartExtension


CanShowCyberItem

Tests whether this part is displaying content referenced by the specified Cyberdog item.

ODBoolean CanShowCyberItem (in CyberItem item);
item
The Cyberdog item for this operation.
return value
kODTrue if the part is displaying the content referenced by the specified Cyberdog item; otherwise, kODFalse.
DISCUSSION
This method is called by the CyberSession::FindCyberItemWindow and CyberSession::SelectCyberItemWindow methods to determine whether the content referenced by the specified Cyberdog item is already being shown in a window.

The superclass implementation of this method returns kODTrue if the specified item is equal to the Cyberdog item returned by the GetCyberItem method. In some cases, you may wish to use a less stringent test. For example, it is possible for two URLs to reference different locations in the same web page. An HTML display part's CanShowCyberItem method might return kODTrue if the specified Cyberdog item references the page that the display part is currently displaying, even though the item's URL is different.

SEE ALSO
The GetCyberItem method (page 285).
The CyberSession::FindCyberItemWindow method (page 359).
The CyberSession::SelectCyberItemWindow method (page 373).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996