protocols

Tile-based MMORPG movements protocol

Hi, I'm working in a tile-based MMORPG and I have a problem. Each user has a fixed position (one tile) all the time, so the rest of the users can see him there, and cannot move to that tile. So there is only one object or user in each tile. If a user becomes invisible, the rest of the users can't see him, but they still unable to move ...

Does a JavaScript bookmarklet need to be a valid URL?

I've searched around but I can't find any information about this; maybe I'm not using the best search terms. Does a JavaScript bookmarklet - i.e., a link that uses the "javascript:" pseudo-protocol that can be dragged to a browser's address bar and opened on any page - need to be a valid URL? I've heard that it does, but I'd like to fin...

Mock / Simulator for Network Traffic in Software Testing

Requirements: I wish there was a software that does: runs my application in "learn mode" logs any network traffic creates a database of request-response combination (e.g. http) runs my application in "offline mode" catches any network traffic (e.g. http), and returns a response from the request-response database Purpose: Testing C...

@protocol extends @protocol

can @protocol extend @protocol ? @protocol Prot1 : Prot2 @end like in java: public interface Interface1 extends Interface2 { } ...

Objective-C. Should I sub-class or should I use a protocol?

I have an example where a protocol would be ideal except for the fact that there is a subset of common state and a few methods that I want to share amongst all implementers of the protocol. This would suggest class sub-classing rather then protocol-ing. I am leary of using sub-classing do primarily to its inflexibility and general loose ...

Protocol Methods not Recognized When Implemented in a Category

I have a view controller class that has to implement several protocols. Too keep things neat I have a habit of putting each protocol's methods in a category on the view controller class. This time I am getting warnings from the linker that the class does not implement one of the protocols. The methods do work at runtime, the linker jus...

Objective-C protocols/interface?

I'm trying to write something similar to this (sorry if the sample is not 100% correct, im just writing off the top of me head): interface Handler { void doSomething ( ); } otherclass { void othermethod ( Handler handler ) { // Handler do something } } So in ObjectiveC I made the following: @protocol Handler -...

Objective-C protocol static method?

I have a protocol in objective-c, something like this: @protocol Handler +(NSString*) getValue; @end So now say I have an instance that inherits this protocol and I want to call this method: [handlerInstance getValue]; This give a warning because the getValue method is not an instance method. How can I properly call this method fro...

Status message in Oscar protocol

I am using toc to write a aim bot, but i don't seems to be able to find a function that set status text, I looked into libpurple and found oscar_status_text, but in toc, i only found toc_set_info, and nothing about set status, and they are obviously not the same thing, is there a set_status function for toc? ...

why does java's URL class not recognize certain protocols ?

Hello all , URL u=new URL("telnet://route-server.exodus.net"); This line is generating : java.net.MalformedURLException: unknown protocol: telnet And i encounter similar problems with other URLs that begin with "news://" These are URLs extracted from ODP , so i dont understand why such exceptions arise.. ...

How to Make a Basic Finite State Machine in Objective-C

I am attempting to build an FSM to control a timer in (iphone sdk) objective c. I felt it was a necessary step, because I was otherwise ending up with nasty spaghetti code containing pages of if-then statements. The complexity, non-readability, and difficulty of adding/changing features lead me to attempt a more formal solution like this...

Why does the IMAP protocol treat the Drafts, Junk and Trash folders differently from user-created folders?

When using IMAP clients to access your email, the Inbox and any other user-created folders are synchronized as a reasonable person (my grandmother) might expect - you add/change/delete content on one device and the change is synchronized to the server and to the other devices. However, IMAP appears to treat the drafts, junk and trash fo...

Applied delegating and protocols

Hello, I am trying to figure out the reason why I should learn these things about delegates and protocols. First I thought that it was necessary in order to create nice(er) design of the code. Then I started to read and I cannot really find the reasons I though that I was going to find (That is, "good" reasons...). When should I apply ...

How to implement a network protocol?

Here is a generic question. I'm not in search of the best answer, I'd just like you to express your favourite practices. I want to implement a network protocol in Java (but this is a rather general question, I faced the same issues in C++), this is not the first time, as I have done this before. But I think I am missing a good way to i...

how do i know when to use a datasource or delegate protocol when using a UI object in my project?

for example the UIPickerView, in the tutorial that i am learning i had to include the datasource and delegate protocols in my project for the pickerview to work. how would i know on other objects? ...

Can an AIR app be programmed to handle a URL protocol?

I'm writing what is essentially a browser in Adobe AIR (ActionScript, not AJAX). A great bit of functionality to implement would be protocol handling. iTunes, for instance, handles itms protocols; when your friend sends you a link beginning with "itms://", it's going to launch iTunes as long as it's installed. Is there a way to write an ...

Where can I find the transaction protocol used by Automated Teller Machines?

I'm doing a grad-school software engineering project and I'm looking for the protocol that governs communications between ATMs and bank networks. I've been googling for quite a while now, and though I'm finding all sorts of interesting information about ATMs, I'm surprised to find that there seems to be no industry standard for high-lev...

Core Location Best Placement and User Interruption

Hi All, My application uses Core Location in three different views. It's working perfectly. In my first view, I subclass the CLLocationManager and use protocol methods for location updates to my calling class. Before I install the framework and code in my other classes, I was wondering: Is the protocol method the best way? What happ...

Why is there no * in front of delegate declaration ?

Hey guys, I just noticed there is no * in front of the declaration for a delegate ... I did something like this : @protocol NavBarHiddenDelegate; @interface AsyncImageView : UIView { NSURLConnection* connection; NSMutableData* data; UIActivityIndicatorView *indicator; id <NavBarHiddenDelegate> delegate; } @prope...

Can I use Google's Protocol buffers for processing LDAP requests in my LDAP server?

Hi, I need to process the incoming predefined ASN format data(coming from verity of clients that uses BER library to build it) in my application server. This is typically an LDAP server where every request will be in a predefined ASN format. Can i use Google's protocol buffers to process the requests in the server side? Will it help an...