---
name: "ObjPak"
section: "3"
platform: "linux"
package: "objpak-dev"
version: "1.1.1-1"
release: "Debian 1.3 (Bo)"
platforms: ["linux"]
url: "https://new.carta.tech/ObjPak"
---

# ObjPak(3)

## CLASS

**ObjPak**

## SUPERCLASS

Object

## DESCRIPTION

**ObjPak**  is the superclass of all classes in ObjectPak.  Methods implemented here are inherited by all ObjectPak classes.

## METHOD TYPES

**Class Methods**

objpakRevision\

**Copying**

deepCopy\

**Comparing**

isEqual:\
 notEqual:\
 compare:\

**Printing**

printToFile:\
 printOn:\
 printToStream:\
 printForDebugger:\

## METHODS

**objpakRevision**

\+ (STR) **objpakRevision**

Returns the version string of the ObjectPak being used.

**deepCopy**

\- **deepCopy**

Should return a  *deep copy*  of the object.  Usually this means a copy that doesn't share objects with the original object and that can be  **free** 'ed independently.  By default, sends  **copy**  to  **super.**

**isEqual:**

\- (BOOL) **isEqual:** *anObject*

Should return YES if the receiver is equal to  *anObject.*

**notEqual:**

\- (BOOL) **notEqual:** *anObject*

Whether  **isEqual:**  returns NO.

**compare:**

\- (int) **compare:** *anObject*

Should return an integer which is less than, equal to, or greater than zero, if the receiver is less than, equal to, or greater than  *anObject.*   The return value is called the method's comparison value.

**printToFile:**

\- **printToFile:** (FILE \*) *aFile*

Should print the contents of the object to  *aFile.*   Should return the receiver.

**printOn:**

\- **printOn:** (IOD) *anIOD*

For compatibility with the Stepstone runtime.  Invokes  **printToFile:**  and returns the receiver.

**printToStream:**

\- **printToStream:** (NXStream \*) *aStream*

For compatibility with the NextStep runtime.  Invokes  **printToFile:**  and returns the receiver.

**printForDebugger:**

\- (void) **printForDebugger:** (NXStream \*) *aStream*

To support the enhanced GNU debugger under NextStep.
