Re: Cocoa classes question
Re: Cocoa classes question
- Subject: Re: Cocoa classes question
- From: SA Dev <email@hidden>
- Date: Tue, 5 Jul 2005 14:49:47 -0400
If you're going to go with this approach, consider making it a
*shared instance* instead. Search this list's archives for how-to's.
It's not as hard as it may seem and is far more efficient.
Otherwise, protocols are another good way to go. What kind of
things will this code accomplish? Maybe the list has some suggestions
on the easiest (or, if not easiest, best) approach.
On Jul 5, 2005, at 2:25 PM, 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:
40silentalcove.net
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