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

initWithFrame not being called on my NSImageView subclass


  • Subject: initWithFrame not being called on my NSImageView subclass
  • From: Shamyl Zakariya <email@hidden>
  • Date: Thu, 21 Feb 2008 13:36:17 -0500

I've written a subclass of NSImageView, and my intent was to set some sane default values for some member vars in my initWithFrame: ( NSRect ) method.

However... initWithFrame simply isn't being called. I know the instance is being instantiated ( it's the main view for a document based app ) and messages are going to/from the instance. All my bindings work, for example. The trouble is, initWithFrame is never called and as such, my member vars are all set to zero, and thus some things are wonky.

In principle, I could probably use awakeFromNib and the like, but I'm concerned that initWithFrame isn't being called.

Anybody know why it wouldn't be called? It doesn't appear to be misspelled.

For reference, this is a document based app. 10.5.2, using the 10.5 SDK. No GC.

email@hidden
 "Our response to being bored and rich is not to discard
 possessions and live more simply, but to buy more stuff
 to reduce the space in which we might contemplate
 our shame."


_______________________________________________

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: Mike Abdullah <email@hidden>
    • Re: initWithFrame not being called on my NSImageView subclass
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Optional methods
  • Next by Date: NSMutableArray Problem
  • Previous by thread: Re: Location of Auxiliary Tools in Bundles
  • Next by thread: Re: initWithFrame not being called on my NSImageView subclass
  • Index(es):
    • Date
    • Thread