It is currently Sat Jul 13, 2024 5:27 am

Mulle kybernetiK Optimization

Forum for Optimizations around Cocoa and Mac OS X

Off Topic: OCMock: Categories and Protocols

Discussion and talk about performance and optimizations in general. War stories. Off Topic Topics Anything goes, except the big No No.

Moderator: Nat!

Posts: 1
Joined: Wed Feb 09, 2005 7:04 pm

Off Topic: OCMock: Categories and Protocols

Post by jimmy » Wed Feb 09, 2005 7:11 pm

Hello. Could not find anywhere else on the site to give feedback/comments on OCMock.

I am having fun using it with OCUnit and OCMock in my first obj-C test driven devel project. (I am relatively new to obj-c).

In hte java mock objects tools, I would probably create interfaces to mock. In Obj-c, I would like to mock protocols (formal or informal) so that my design can be more loosely coupled (instead of requiring that some interface be a concrete class).

Is there an easy way to mock informal protocols (NSObject categories) or formal protocols in OCMock?

Regardless, it is a great tool accomplished with minimal coding.



Posts: 1
Joined: Thu Feb 10, 2005 12:07 am

Post by erik » Thu Feb 10, 2005 12:10 am

Hi Jimmy, I'm the author of OCMock. You can reach me at

We now also have a dedicated forum for OCMock. You can find it here:

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest