DBAccount as a @property in iOS Dropbox Datastore API -


I am looking at the sample work app which uses the Dropbox Datastore API:

inside Work Controller. M is a account property:

  @property (nonatomic, readonly) DBAccount * account;   

In other areas of the class, this account, as referred to as self.account , and I have found that it is a private method:

  - (DBAccount *) account {return self.accountManager.linkedAccount; }   

... but I am unsure about how it relates to the readonly property.

Where is the account to begin? If it is inside the above method, then I can not see anywhere that this method is called.

Thank you.

account is a property, so whenever you access it, Then the -account method is called.

(If this is not readable , then a consistent method -setout which at any time specifies a value for the property ).

Here the "Properties" section covers this bit here:.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -