logos icon indicating copy to clipboard operation
logos copied to clipboard

%property add interface

Open qwertyuiop1379 opened this issue 5 years ago • 3 comments

Not really a bug or anything, just a small feature request.

Would be cool if adding a %property to a class automatically created an @interface with the property.

qwertyuiop1379 avatar Oct 17 '19 00:10 qwertyuiop1379

I mostly agree on this, but annoyingly the API was designed how it was and changing it would break all current code using %property and also defining an @property. There’s also a slight issue I see that if the property is accessed from another file, the developer may not realise that they need to define the @property manually for that other file, and they also wouldn’t be able to put it in a global header (e.g. imported with -include Global.h compiler flag) because that would trigger a compile warning.

kirb avatar Oct 17 '19 03:10 kirb

@kirb why was this left open?

NSExceptional avatar Apr 30 '20 02:04 NSExceptional

It’s open as a wishlist thing, unlikely to happen for current Logos but could be added to Logos 2.

kirb avatar Apr 30 '20 03:04 kirb