• 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: The KVO Race
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The KVO Race


  • Subject: Re: The KVO Race
  • From: "Hamish Allan" <email@hidden>
  • Date: Wed, 4 Jun 2008 19:37:44 +0100

On Tue, Jun 3, 2008 at 8:20 PM, Gordon Apple <email@hidden> wrote:

>    I guess I don't know hw to use that.  The particular situation was a nib
> that is document related, but loaded and opened later by menu.

Ah, okay. But the solution is essentially the same: set up the
observers when you're sure the whole nib has loaded, rather than in
each controller's awakeFromNib. For the main nib, you can use
applicationWillFinishLaunching. For your own nib, you can just set
them up after you've called loadNibNamed:owner:.

Or you could just set up the dependencies as per Keith Duncan's
suggestion. Much cleaner!

Hamish
_______________________________________________

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: 
 >Re: The KVO Race (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: NSAppleScript question
  • Next by Date: Re: IBOutlet, multiple nibs, method duplication
  • Previous by thread: Re: The KVO Race
  • Next by thread: Manipulating images with meta-data
  • Index(es):
    • Date
    • Thread