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: Interapplication Communication /
Chapter 2 - Edition Manager / Edition Manager Reference
Edition Manager Routines / Creating and Registering a Section


IsRegisteredSection

Upon receiving a section event, your application must call the IsRegisteredSection function to verify that the event received is for a registered section. You must call IsRegisteredSection before handling a section event because your application may have just called UnRegisterSection while the event was already being held in the event queue.

FUNCTION IsRegisteredSection (sectionH: SectionHandle): OSErr;
sectionH
A handle to the section record for a given section.
DESCRIPTION
The IsRegisteredSection function returns a result code (not a Boolean value) indicating whether the section is registered. A noErr result code indicates that a section is registered.

RESULT CODES
noErr0No error
notRegisteredSectionErr-452Not registered
SEE ALSO
For an example of the use of IsRegisteredSection, see Listing 2-1 on page 2-14.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996