• 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: initWithFrame not being called on my NSImageView subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initWithFrame not being called on my NSImageView subclass


  • Subject: Re: initWithFrame not being called on my NSImageView subclass
  • From: "Kyle Sluder" <email@hidden>
  • Date: Thu, 21 Feb 2008 14:15:28 -0500

On Thu, Feb 21, 2008 at 2:06 PM, Mike Abdullah
<email@hidden> wrote:
> If the view's being loaded from a nib it's archived, so you need -
>  initWithCoder:

I'm not sure -initWithCoder: is guaranteed to be called, and is
certainly not the "proper" place to be performing object
initialization after awaking from a nib.  The official recommendation
is to either create an IB plugin so that your version of
-initWithFrame: is called at design time, or perform subclass-specific
initialization in -awakeFromNib.

http://lists.apple.com/archives/cocoa-dev/2002/Jul/msg01647.html

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: initWithFrame not being called on my NSImageView subclass
      • From: "Ken Ferry" <email@hidden>
    • Re: initWithFrame not being called on my NSImageView subclass
      • From: Shamyl Zakariya <email@hidden>
References: 
 >initWithFrame not being called on my NSImageView subclass (From: Shamyl Zakariya <email@hidden>)
 >Re: initWithFrame not being called on my NSImageView subclass (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Core Data problems
  • Next by Date: Re: initWithFrame not being called on my NSImageView subclass
  • Previous by thread: Re: initWithFrame not being called on my NSImageView subclass
  • Next by thread: Re: initWithFrame not being called on my NSImageView subclass
  • Index(es):
    • Date
    • Thread