• 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: Q: Designated initializers: what are they?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: Designated initializers: what are they?


  • Subject: Re: Q: Designated initializers: what are they?
  • From: g <email@hidden>
  • Date: Sat, 12 May 2001 12:33:00 -0700

On Saturday, May 12, 2001, at 11:00 AM, Ali Ozer wrote:
Of course right after posting this I remembered that initWithFrame: should still be called for custom subclasses of NSView in IB which are instantiated as views in IB; initWithCoder: is called in some less common cases. Sounds to me like your case is the common case, which should have been going through initWithFrame:. But you said initWithFrame: wasn't called at all?

Correct. I was expecting initWithFrame: to be called from initWithCode: but it wasn't. My view is a subclass of NSImageView and it doesn't have any additional stored fields.

Arno.


  • Follow-Ups:
    • Re: Q: Designated initializers: what are they?
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: Q: Designated initializers: what are they? (From: Ali Ozer <email@hidden>)

  • Prev by Date: NSSound
  • Next by Date: simple Project Builder debugger question
  • Previous by thread: Re: Q: Designated initializers: what are they?
  • Next by thread: Re: Q: Designated initializers: what are they?
  • Index(es):
    • Date
    • Thread