Skip to main content

Posts

Showing posts with the label protocols

Extending Protocol Buffers in Java

I'm having trouble accessing extended protocol buffer members. Here is the scenario: Message Foo { optional int i = 1; } message Bar { extend Foo { optional int j = 10001; } } I don't have the Bar message within any of my other protos. How can I get Bar.j in Java? All examples I've found require a Bar within a message. Thanks!

Delegates in iphone

I am using custom Kal calender view library downloaded from github. I know very well and execute successfully how to create delegate protocol and implement them. But now in my application I have to do, when user click on date that date directly reflect to my UIViewController class. For that scenario I used @protocol delegate method but I got strange problem in it. Please see the following screenshot and suggest me where I am wrong, Then i synthesize my protocol but I got the below error. Why, where I am wrong?