<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/isCaseInsensitiveLike(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)isCaseInsensitiveLike:"
  },
  "title" : "isCaseInsensitiveLike(_:)"
}
-->

# isCaseInsensitiveLike(_:)

Returns a Boolean value that indicates whether receiver is considered to be “like” a given string when the case of characters in the receiver is ignored.

```
func isCaseInsensitiveLike(_ object: String) -> Bool
```

## Parameters

`object`

The string with which to compare the receiver.

## Return Value

[`YES`](/documentation/ObjectiveC/YES) if the receiver is considered to be “like” `aString` when the case of characters in the receiver is ignored, otherwise [`NO`](/documentation/ObjectiveC/NO).

## Discussion

Currently, [`isCaseInsensitiveLike(_:)`](/documentation/ObjectiveC/NSObject-swift.class/isCaseInsensitiveLike(_:)) messages are never sent to any object from within Cocoa itself.

The default implementation for this method provided by `NSObject` returns [`NO`](/documentation/ObjectiveC/NO). `NSString` also provides an implementation of this method, which returns [`YES`](/documentation/ObjectiveC/YES) if the receiver matches a pattern described by `aString`, ignoring the case of the characters in the receiver.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)