UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FApplePlatformObject Class Reference

#include <ApplePlatformMemory.h>

+ Inheritance diagram for FApplePlatformObject:

Instance Methods

(void- dealloc
 

Class Methods

(nullable OSQueueHead *) + classAllocator
 
(id) + allocClass:
 

Detailed Description

NSObject subclass that can be used to override the allocation functions to go through UE4's memory allocator. This ensures that memory allocated by custom Objective-C types can be tracked by UE4's tools and that we benefit from the memory allocator's efficiencies.

Method Documentation

◆ allocClass:

+ (id) allocClass: (Class NewClass

Sub-classes should override allocWithZone & alloc to call allocClass

◆ classAllocator

+ (nullable OSQueueHead *) classAllocator

Sub-classes should override to provide the OSQueueHead* necessary to allocate from - handled by the macro

◆ dealloc

- (void) dealloc

Override the core NSObject deallocation function to correctly destruct

Implemented in FMetalDeallocHandler.


The documentation for this class was generated from the following files: