Is this possible? For example, I have a class TriangleDataView with an init method. Currently the method is declared like this:
- (id)initWithFrame:(CGRect)frame delegate: (id) delegateObject;
I would like to require that delegateObject conform to the UITextFieldDelegate protocol. But what is the syntax for that?
...
Hi,
I'm revisiting a communications protocol parser design for a stream of bytes (serial data, received 1 byte at a time).
The packet structure (can't be changed) is:
|| Start Delimiter (1 byte) | Message ID (1 byte) | Length (1 byte) | Payload (n bytes) | Checksum (1 byte) ||
In the past I have implemented such systems in a procedu...
Hi all,
In my application, I need to return the "Class" as a return type like:
Application.m:
+ (Class)getParserClass {
return [NCCurrencyParser class];
}
NCCurrencyParser.m:
@interface NCCurrencyParser NSObject <NCParser>
@protocol NCParser
+(NSNumber *)parserNumber:(NSNumber *)number;
in the caller method:
Class parserClas...
Hi,
I'm looking for a program that can emulate, impersonate a MSSQL server and convert and write the queries to a MySQL database. Thus allowing me to configure client applications developed for MSSQL database systems only, to connect to the emulator and thus writing and reading the MySQL based records.
Any help will be highly appreciat...
I am developing an open "protocol" for dynamic ridesharing services using mobile phones.
It is based on XML-RPC and uses marshalled objects as parameters (quite like Soap).
Every entity and operation will be heavily documented in the draft.
As example, look at this first skeleton of a documented Prefs object to be used in the Protocol....
I'm about to design a client application and the server part is not designed either.
I need to decide on the communication protocol.
The requirements are:
fast, compact
supports binary file transfer both ways
server is probably PHP, client .NET
So far I have considered these:
custom XML over HTTP - I've done this in the past, but...
Hi,
I have a LAYER class and created a protocol:
@protocol countryControllerDelegate
-(void)didReceiveGamePlayTimeWarning;
@end
And i make use of that delegate in a CocosNode class.
#import "protocolClass.h"
myClass: CocosNode [countryControllerDelegate] {
But there is an error that "cannot find protocol declaration ".
Is ...
I got a view controller class (MyViewController) that deals with a UIView subclass (MyView). I don't want to let any class except the view controller class know about the UIView subclass, so I cannot import MyView.h in MyViewController.h.
So, in MyViewController.m, I put
#import "MyViewController.h"
#import "MyView.h"
@interface MyVie...
Hi,
I have this URL: http://example.com/website/ then I check user country based on geoip and redirect them to: http://example.com/website/en/, http://example.com/website/pt/ etc..
Witch code should I use for this redirect 301, 302 or other?
cheers
...
How can Malroy impersonate Alice in the Wide Mouth Frog protocol?
Notation:
A: Alice
B: Bob
S: Trusted server
Ta: Timestamp A
Ts: Timestamp S
Kab: Session key between A and B
Kas: Session key between A and S
Kbs: Session key between B and S
Protocol:
step 1:
A->S:A,{Ta,Kab,B}Kas
step 2:
S->B:{Ts,Kab,A}Kbs
...
I have this in my view controller:
[[[UIApplication sharedApplication] delegate] sendMessageAsSingleObject:[sender currentTitle]];
Which gives me this warning:
warning: '-sendMessageAsSingleObject:' not found in protocol(s)
But in my AppDelegate i have the method declared in the header...
I should add that the call works, just wan...
Where can I find a complete specification of the q2q protocol? I wanna try implementing it on my own also to see difference between q2q and p2p but I can't find a complete documentation.
...
What do we mean by an Object "sending messages" and how do protocols help an object to advertise the messages it supports? Does anyone have an example?
...
hello all.
i have managed to make a NTP request and retrieve the server time from it's NTP response.
i want to convert this number to a Human-readable time, writing in C++.
can some one help me ?
as example you can look at:
http://www.4webhelp.net/us/timestamp.php?action=stamp&stamp=771554255&timezone=0
once you set the timestamp...
Hi all,
I was finally able to write protocol buffers code over REST and did some comparison with XStream which we are currently uses.
Everything seems great, only stumble with one thing.
We have very large messages in one particular attributes, say something like this
message Data {
optional string datavalue=1;
}
Datavalue above a...
Hi,
I want to define one protocol with few properties and need to use those properties in another NSObject subclass. Please give me link or example code. I need that to work with 10.5.
Thanks
PLEASE CHECK THE FOLLOWING SAMPLE CODE
@protocol MyProtocol
@property (nonatomic, readonly) id someObject;
@property (nonatomic, getter=is...
i wanted to implement an optional protocol for my subviews.
the subview-class is inherited by uiviewcontroller and the most viewcontrollers are inherited by this subview. i think it is a simple structure.
the problem is: it only works in the simulator. on a device just the first nslog appears, then the application closes. on the simulat...
I have created a protocol in Clojure 1.2 that handles my own Java classes and has default handling for a generic java.lang.Object. The code looks something like:
(extend-protocol PMyProtocol
my.java.ClassName
(protocol-function [c]
"My Java class result")
java.lang.Object
(protocol-function [c]
"Default object r...
Hello,
I'm giving a presentation to some undergraduates & post graduates (as part of their computer networks course) on real world client server communication.
"real world" is the key here. So, I want pick 4-5 case studies of popular real world client-server communication protocols that may help them in future.
So far, I've thought of...
I have an Objective-C protocol:
typedef enum {
ViewStateNone
} ViewState;
@protocol ViewStateable
- (void)initViewState:(ViewState)viewState;
- (void)setViewState:(ViewState)viewState;
@end
I'm using this protocol in the following class:
#import "ViewStateable.h"
typedef enum {
ViewStateNone,
ViewStateSummary,
Vie...