Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When is the - (id)init method not called for an Objective-C class?




Le 30 déc. 08 à 09:29, Andrew Farmer a écrit :

On 30 Dec 08, at 00:24, Michael A. Crawford wrote:
I have an init method for an NSView sub-class that is never called. Not expert enough with Objective-C to understand why? Anyone have a clue?

The designated initializer for NSView is initWithFrame:, IIRC.

In fact, there is not necessarily only one designated initializer. IIRC, -initWithFrame: and -initWithCoder: are both designated initializer for NSView.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >When is the - (id)init method not called for an Objective-C class? (From: "Michael A. Crawford" <email@hidden>)
 >Re: When is the - (id)init method not called for an Objective-C class? (From: Andrew Farmer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.