Re: Cocoa classes question
Re: Cocoa classes question
- Subject: Re: Cocoa classes question
- From: Luc Vandal <email@hidden>
- Date: Tue, 5 Jul 2005 14:25:41 -0400
I have some code I want to reuse in different objects so I thought I
could write a class that other classes would derive from. I guess I'll
simply create an instance of that class in the objects that will need
it.
Luc
On 5-Jul-05, at 2:17 PM, Will Mason wrote:
Objective-C does not support multiple inheritance, but you can achieve
similar results by using protocols and/or categories. What are you
trying to do?
Will
--- Luc Vandal <email@hidden> wrote:
Hi,
what is the syntax so a class can derrive from more than one class? I
tried
@interface MyClass: NSObject, MyOtherClass
and I get a compile error.
Thanks!
Luc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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