• 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: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]


  • Subject: Re: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 20 Aug 2009 11:05:13 -0400

On Aug 20, 2009, at 10:59 AM, Kyle Sluder wrote:

Use -awakeFromNib to do view setup (turning on layer backing, creating caches colors, etc.). Use -windowDidLoad (or - windowControllerDidLoadNib or whatever that NSDocument method is) for setting up inter-view relationships.

Hmm ... so would you say to do otherwise is "doing it wrong" or "doing it sub-optimally"?


I don't recall such guidelines in the documentation, so if I've missed it (or it's been added since I last studied the relevant docs), I would very much appreciate a reference. If not, I think this is a great topic of discussion (ie, a general architectural approach).

--
I.S.




_______________________________________________

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: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]
      • From: Andy Lee <email@hidden>
    • Re: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]
      • From: Kyle Sluder <email@hidden>
References: 
 >Statements in Replaced Method execute out of sequence - How? (From: Jerry Krinock <email@hidden>)
 >devil of a time with an NSImageView (From: Jack Carbaugh <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Dave DeLong <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jack Carbaugh <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Quincey Morris <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jack Carbaugh <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jean-Daniel Dupas <email@hidden>)
 >Re: devil of a time with an NSImageView (From: "I. Savant" <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jean-Daniel Dupas <email@hidden>)
 >Re: devil of a time with an NSImageView (From: "I. Savant" <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jean-Daniel Dupas <email@hidden>)
 >Re: devil of a time with an NSImageView (From: "I. Savant" <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jean-Daniel Dupas <email@hidden>)
 >Re: devil of a time with an NSImageView (From: "I. Savant" <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Kyle Sluder <email@hidden>)

  • Prev by Date: contextual menu plugin example in cocoa
  • Next by Date: Re: Model objects to NSUndoManager--am I doing it right?
  • Previous by thread: Re: devil of a time with an NSImageView
  • Next by thread: Re: -awakeFromNib vs. -windowDidLoad [Was: devil of a time with an NSImageView]
  • Index(es):
    • Date
    • Thread