This is a somewhat hidden option in Thunderbird. In order to do so, go to accounts, select the account you want to make the default and then from the account action button/menu select “Set as default”.
iOS has something that called protocols, that has some resemblance to a Java interfaces.
- Protocols have only functions
- no members
- all public (well this is obvious as objective C has no access modifiers)
Declaring a protocol:
@protocol MainControllerProtocol <NSObject> @required -(void)goToViewByNumber:(int)viewNumber; @end
the @required means that this method has to be implemented in the underlining class.
Unlike Java, assigning protocol is slightly different, as Objective C must get an actual class. BUT, we don’t have one, otherwise there is no point in the protocol! so what to do?
Here is the answer: derive a bogus class from id, like this:
This will work great. in a function, don’t forget to put this in a brackets.