I've read in Apples docu that (as I expected) an NSDictionary is not constrained just to strings for keys. There's also a post here confirming that Sets can be used. I want to use protocol objects but it' not happening. I initWithObjectsAndKeys and pass @protocol(MyGreatProtocol) as a key. Compiles but I get a runtime error saying something like "object [the protocol object] doesn't implement somethingorother - trouble ahead" then another error message saying something like "You see, I said it would cause problems. I'm bailing out of this!"
Ok, the wording of the second might have been slightly different, but sorry not at the comp right now and wanted to try clarify this before I really am back at it. Hope at least somebody will get the gist of my problem.
Maybe it's the way I'm referencing the protocol? I've played around with alternatives without success. And @protocol(Blah) returns a pointer? So can't really fathom why it's not working.