Archive by Author
prodro

id<Protocol>, Retain/Release and Protocol Inheritance

Paul Cantrell’s recent post showed that you can use Objective-C protocols to constrain the behavior of id objects. When declaring an instance variable or parameter as id<Protocol>, the compiler’s type checker will warn when sending message not found in Protocol. For this reason, protocols are pretty handy. But in practice, a problem arises. Let’s say [...]

Read full storyComments { 5 }
© 2008-2011 • Mobile Orchard and the Bar-Tree Logo are service marks.