• 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: NSData object trouble with <16KB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData object trouble with <16KB


  • Subject: Re: NSData object trouble with <16KB
  • From: Michael Hall <email@hidden>
  • Date: Thu, 22 Apr 2004 17:50:34 -0500

On Thursday, April 22, 2004, at 05:04 PM, David Piasecki wrote:

Thanks. That makes more sense now. I had previously assumed (coming from the C++/Java world) that alloc created a new object and init or initFoo simply called different constructors.

Applet init's from Java are I think somewhat similar except more optional. It seems for Obj-C like init should _always_ be invoked and should _always_ invoke supers. I've already broke these rules since they seemed to be causing problems ending up with the correct self/id for me as well but I have had an uneasy feeling doing so. I got over it though as long as things seemed to work? It seems like from my own newbie point of view that if in fact these are optional and not strictly required that classes should document whether they actually need to implement this or do have to invoke supers.
I think sometimes the individual class documentation will say this but in some places there are more blanket statements that some of this must always be done when it might a good habit to have but isn't in fact always necessary?

Mike Hall <mikehall at spacestar dot net>
<http://www.spacestar.net/users/mikehall>
_______________________________________________
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: NSData object trouble with <16KB
      • From: Ondra Cada <email@hidden>
References: 
 >Re: NSData object trouble with <16KB (From: "David Piasecki" <email@hidden>)

  • Prev by Date: Re: NSData object trouble with <16KB
  • Next by Date: Re: NSData object trouble with <16KB
  • Previous by thread: Re: NSData object trouble with <16KB
  • Next by thread: Re: NSData object trouble with <16KB
  • Index(es):
    • Date
    • Thread