What is the best way to represent a maybe type in Objective C without using pointers? I can not simply use a pointer to a pointer to an object, because a pointer to a pointer to an object is not an object, and I need it to be an object.
I know one way to do this is to have a custom class for each object I have, which would result in classes like, MaybeEmployee, MaybeOrderStatus, and many more custom classes. This would work, but it seems kludgy, and not like a very good solution at all.
The second way to do it, having simply a Maybe class also seems wrong. The lack of type safety is just plain bad.