On Feb 10, 2010, at 12:23 PM, James Walker wrote:

> I think at times I've written things like [[NSMutableArray alloc] init] with 
> no apparent ill effects, but now I notice that the docs for NSMutableArray 
> and NSArray don't say that there is an init method.  The NSObject docs say 
> that an init method might raise an exception.  Is there some other init rule 
> that I've missed, or have I just gotten lucky?

When in doubt, remember to look at the super-class documentation:

http://developer.apple.com/mac/library/documentation/cocoa/reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#//apple_ref/doc/uid/20000050-init

All classes that inherit from NSObject (which means pretty much
all of them) inherit NSObject's   –init   method, and that's assumed
or implicit in the Array examples you referenced above . . .

    Cheers,
        . . . . . . . .    Henry



=================================================
iPhone App Development and Developer Education . . .
        Visit  www.nonatomic-retain.com

Mac OSX Application Development, Plus a Great Deal More . . .
        Visit  www.trilithon.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to