• 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
Re: inheriting from NSMutableData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inheriting from NSMutableData


  • Subject: Re: inheriting from NSMutableData
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 13 Sep 2003 20:17:51 -0400

On Saturday, September 13, 2003, at 6:33 PM, daniel oberhoff wrote:

i get an exception telling me that initWithCapacity is only defined for abstract class and that i should define it in my class. shure i could, just calling super within (sorry, i forgot to try and now its no the other system...) but it shows me that i have not understood the inheritance.

i mean, NSMutableData should have a concrete implementation of initWithCapacity, why isnt it just called?

I think it's a class cluster problem. do a search on class clusters in the doc, and you'll see it's a whole new thing to learn


is there any more stones in the way? it suggests so. coz i was assuming i could also still use all the other init methods (which is why i access the format with selector methods so if it isnt defined it will say so...and define it to canocal 44.l float lpcm or such).



a better suggestion in this case I think would be to have a Sound class that contains the NSMutableData object, and your own custom fields, rather than making it a subclass of NSMutableData.
_______________________________________________
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.
References: 
 >inheriting from NSMutableData (From: daniel oberhoff <email@hidden>)

  • Prev by Date: Re: [ANN] AGRegex 0.4
  • Next by Date: Re: Calling Cocoa APIs from a command line application
  • Previous by thread: inheriting from NSMutableData
  • Next by thread: Re: inheriting from NSMutableData
  • Index(es):
    • Date
    • Thread