inheritance and initialisation
inheritance and initialisation
- Subject: inheritance and initialisation
- From: Richard Chamberlain <email@hidden>
- Date: Thu, 14 Aug 2003 23:14:15 +0100
Hello,
I want to create a new sub class of NSBezierPath so I can store a
number of extra attributes along with it's current set, a colour for
instance.
Obviously I need to add a number of instance variables and supporting
methods for these so what I want to know is how, or more specifically
which initialisation method do I override?
This is more of a general question - for instance in a class that
contains a number of initialisers how do I know which to use?
In the case of NSBezierPath according to its header file it doesn't
re-implement init so I presume the class method bezierPath calls init
so implementing that would work?
Many thanks for any help,
Richard
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.