Can I use in IOS something like Annotations (Android), Attribites (.NET)?

Hello,
I’m new in IOS and I want to write some simple application.
I want to declare class with field description like ( Annotations or Attributes (Java,.NET)).
Can I do it ? Where to start to find out something about similar solution ?

Annotation example in Oxygene (I want to do the same in IOS :))

TSimpleClass= public class(ISimpleclass);
protected
[DB(fieldname:='NAME,keyfield := True)]
FNAME : String;
public
property Name : String read FName write FName;
end;

Thank you for your help

Not yet. Cocoa doesn’t offer anything like it. However we do have a research issue for logged: 71165: Nougat attributes.

Hi,
Any progress in a research issue for logged: 71165: Nougat attributes ?

Best regards

Not yet, our first focus was to get the build out. What will you use this for?

Hi Carlo,
I’m using attributes and annotations in my class for generating SQL and reading data from JSON to my object (in one place). I have class shared between Win And Android and all works fine :).
I’m thiniking about IOS but for this platform I don’t have attributes so I would have to write other solution ( I can do it but it is more work :))

Best regards

So things like [FieldName] and [PrimaryKey] ?

Yes , I’m using it to map data from json or xml to my object in one place.
It works great with shared projects and sugar for 2 platforms :wink:

I’ll try & prioritize this for the next release then.

Thank you very much !!!

Hi Carlo,
Some info about IOS ?

Not yet. Other things got in the way.

Any plans ?

It’s on the list, yes. We don;t have an ETA though, this is quite a bit of work and needs to be thought out well.

Thank you for the info.

The big issue here is:

  • Where to store the custom attributes
  • How to retrieve it efficiently

I have tried some designs but can’t really find one I’m happy with.

We will wait - maybe you will find the one acceptable :slight_smile:
I believe in you and RemObjects Team !!

1 Like

This will be supported in 8.3 (note that’s not the current betas yet)

Yes it is ;). the current betas are form the 8.3 branch, so this should be in Friday’s beta build.

Hi Carlo,
This is the best info of this year for me !!
Thank You Carlo and Remobjects Team.
You are doing the best tools I have used so far :slight_smile: - Oxy and elements are awsome.

I wish you all the best in the New Year 2016 :slight_smile:

Best regards
Mateusz

2 Likes

Thanx!