---
title: isEqualTo
framework: kernel
role: pseudoSymbol
path: kernel/ossymbol/1808078-isequalto
---

# isEqualTo

Tests the equality of an OSSymbol object to an arbitrary object.

## Declaration

```occ
virtual bool isEqualTo(
 const OSMetaClassBase *anObject) const; 
```

## Parameters

- `anObject`: The object to be compared against the receiver.

## Return Value

Return Value Returns true if the two objects are equivalent, false otherwise.

## Overview

Overview An OSSymbol is considered equal to another object if that object is derived from OSString and contains the equivalent bytes of the same length.

## See Also

### Miscellaneous

- [free](kernel/ossymbol/1808021-free.md)
- [initWithCString](kernel/ossymbol/1808026-initwithcstring.md)
- [initWithCStringNoCopy](kernel/ossymbol/1808036-initwithcstringnocopy.md)
- [initWithString](kernel/ossymbol/1808054-initwithstring.md)
- [isEqualTo(const char *)](kernel/ossymbol/1808093-isequalto.md)
- [isEqualTo(const OSSymbol *)](kernel/ossymbol/1808114-isequalto.md)
- [taggedRelease(const void *)](kernel/ossymbol/1808137-taggedrelease.md)
- [taggedRelease(const void *, const int)](kernel/ossymbol/1808154-taggedrelease.md)
- [withCString](kernel/ossymbol/1808171-withcstring.md)
- [withCStringNoCopy](kernel/ossymbol/1808179-withcstringnocopy.md)
- [withString](kernel/ossymbol/1808192-withstring.md)
