• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
inheritance and initialisation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: inheritance and initialisation
      • From: James Dempsey <email@hidden>
  • Prev by Date: Re: NSPanel nib with NSWindowController
  • Next by Date: Re: NSHomeDirectory not working with NSOpenPanel
  • Previous by thread: Re: Double Beep
  • Next by thread: Re: inheritance and initialisation
  • Index(es):
    • Date
    • Thread