I want to know if it's possible to create Objective-C literals like NSString
, where instead of [[Object alloc] init]
, and then assigning you can just assign a value to it, such as @"A string"
.
Obviously NSString
is an object because it has methods to manipulate the data in addition, so in theory there should be a way to do it yourself, but I'm not sure where to even go about finding stuff like this.