• 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: When is the - (id)init method not called for an Objective-C class?
[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?


  • Subject: Re: When is the - (id)init method not called for an Objective-C class?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 30 Dec 2008 09:38:53 +0100


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:
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>)

  • Prev by Date: Re: When is the - (id)init method not called for an Objective-C class?
  • Next by Date: Safari Contextual Menu
  • Previous by thread: Re: When is the - (id)init method not called for an Objective-C class?
  • Next by thread: Re: When is the - (id)init method not called for an Objective-C class?
  • Index(es):
    • Date
    • Thread