Re: Cocoa classes question
Re: Cocoa classes question
- Subject: Re: Cocoa classes question
- From: Daniel DeCovnick <email@hidden>
- Date: Thu, 7 Jul 2005 22:57:06 -0700
Sorry, that second one should be @interface MyClass : MyOtherClass
-Dan
On Jul 7, 2005, at 10:35 PM, Daniel DeCovnick wrote:
I could be wrong, but I think it sounds like your only mistake is
in not just having MyOtherClass inherit from NSObject, ie:
@interface MyOtherClass : NSObject
...
@interface MyClass : MyClass
...
-Daniel DeCovnick
danhd123 at mac dot com
Softyards Software
http://www.softyards.com
On Jul 5, 2005, at 11:25 AM, Luc Vandal wrote:
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:
40yahoo.com
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
_______________________________________________
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
_______________________________________________
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