Mac OS X Reference Library Apple Developer Connection spyglass button

Instant Message Functions Reference

Framework
InstantMessage/IMService.h
Companion guide
Declared in
IMService.h

Overview

This document describes the functions found in the Instant Message framework.

Functions

This chapter describes the functions and function-like macros defined in the Instant Message framework.

IMComparePersonStatus

Compares two IMPersonStatus values to determine which one has a higher availablity.

NSComparisonResult IMComparePersonStatus(IMPersonStatus status1, IMPersonStatus status2)
Parameters
status1

The status to compare with status2.

status2

The status to compare with status1.

Return Value

NSOrderedAscending if status1 is less than status2, NSOrderedDescending if status1 is greater than status2, or NSOrderedSame if status1 is equal to status2.

Discussion

You should always use this function when comparing status values.

Availability
Related Sample Code
Declared In
IMService.h


Last updated: 2009-07-24

Did this document help you? Yes It's good, but... Not helpful...