Re: Inherited Protocols

2014-03-06 Thread Mike Abdullah
On 6 Mar 2014, at 16:29, jonat...@mugginsoft.com wrote: > > On 6 Mar 2014, at 15:34, Mike Abdullah wrote: > >> >> On 6 Mar 2014, at 15:30, William Squires wrote: >> >>> Can an ObjC protocol be inherited by another protocol? I know the syntax >>> for regular (class) inheritance, and for spe

Re: Inherited Protocols

2014-03-06 Thread jonat...@mugginsoft.com
On 6 Mar 2014, at 15:34, Mike Abdullah wrote: > > On 6 Mar 2014, at 15:30, William Squires wrote: > >> Can an ObjC protocol be inherited by another protocol? I know the syntax for >> regular (class) inheritance, and for specifying that a class implements a >> protocol, but what's the syntax

Re: Inherited Protocols

2014-03-06 Thread Uli Kusterer
On 06 Mar 2014, at 16:34, Mike Abdullah wrote: > This means any object adopting MyProtocol must implement all of the NSObject > protocol’s methods too. Useful thing to point out here: There are both a class and a protocol named 'NSObject'. In fact, the class conforms to the protocol. -- Uli

Re: Inherited Protocols

2014-03-06 Thread Mike Abdullah
On 6 Mar 2014, at 15:30, William Squires wrote: > Can an ObjC protocol be inherited by another protocol? I know the syntax for > regular (class) inheritance, and for specifying that a class implements a > protocol, but what's the syntax (if there is one) for one protocol inheriting > from ano

Inherited Protocols

2014-03-06 Thread William Squires
Can an ObjC protocol be inherited by another protocol? I know the syntax for regular (class) inheritance, and for specifying that a class implements a protocol, but what's the syntax (if there is one) for one protocol inheriting from another? i.e. I have a protocol, INotSoStiffProtocol that ha