oleksii-demedetskyi / Parus

Parus is simple chain style auto-layout helper for objective-c.
MIT License
106 stars 4 forks source link

Using custom entities as returning type. #18

Closed oleksii-demedetskyi closed 10 years ago

oleksii-demedetskyi commented 10 years ago

At current moment we use NSObject with set of protocols. This lead to unclear behavior of auto-complete. All properties and methods are equal for suggestion.

In opposite we can add some empty fake subclass of NSObject, that would allow correct auto-complete behavior. For example this can be PVEntity class.

Forsarion commented 10 years ago

Results of autocompletion using NSObject<ProtocolName>: screen shot 2013-08-13 at 4 53 31 pm Results of autocompletion using class with <ProtocolName> support: screen shot 2013-08-13 at 4 56 31 pm

I see no difference in this approaches. So not sure how fake subclass could help us here.

oleksii-demedetskyi commented 10 years ago

Agree. Moved to another milestone. Need more investigation later.

oleksii-demedetskyi commented 10 years ago

Suddenly we fix this via @trait and fake id class.