5

I've been using the new nullability stuff in Xcode 6.3

However, I'm running into an issue like this

[Object doSomethingWithNonNullParam:otherObject.nullableProperty];

Whats the best way to solve this If I'm confident otherObject.nullableProperty is not nil?

Sam Jarman
  • 7,277
  • 15
  • 55
  • 100

1 Answers1

13

I think a cast here is appropriate?

[Object doSomethingWithNonNullParam:(OtherObject *_Nonnull) otherObject.nullableProperty];

Sam Jarman
  • 7,277
  • 15
  • 55
  • 100