---
title: ResourceSpec
framework: Core Services
role: symbol
role_heading: Structure
platforms: [Mac Catalyst 17.0+, macOS 10.0+]
path: coreservices/resourcespec
---

# ResourceSpec

## Declaration

```occ
typedef struct ResourceSpec {
    ...
} ResourceSpec;
```

## Overview

Overview The  ComponentResource  structure uses the resource specification structure, defined by the ResourceSpec data type, to describe the component’s code, name, information string, or icon. The resources specified by the resource specification structures must reside in the same resource file as the component resource itself.

## Topics

### Instance Properties

- [resID](coreservices/resourcespec/1516457-resid.md)
- [resType](coreservices/resourcespec/1516570-restype.md)
