Re: Abstract base classes in Objective C
Re: Abstract base classes in Objective C
- Subject: Re: Abstract base classes in Objective C
- From: Andrew White <email@hidden>
- Date: Thu, 14 Apr 2005 17:24:39 +1000
Kevin Ballard wrote:
Any suggestions? Are protocols what I'm looking for?
I believe protocols are what you want. What's the problem you're having
with them?
Just to clarify, this is how you use an object that conforms to a
protocol:
id <MyProtocol> obj = [foo getAnObject];
[obj method1];
I was hoping it would be transparent whether I was using an "abstract base
class" or a concrete class, while the above code requires different syntax
for a class than a protocol.
Thanks for the help, though.
--
Andrew White
--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden