• 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: Why is -makeWindowControllers getting called twice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is -makeWindowControllers getting called twice?


  • Subject: Re: Why is -makeWindowControllers getting called twice?
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 4 May 2009 16:57:55 -0400

Note these two lines:

On Sun, May 3, 2009 at 9:38 PM, David Scheidt <email@hidden> wrote:
> #0  -[MyDocument makeWindowControllers] (self=0x10471d0, _cmd=0x9464d69c) at
> #0  -[MyDocument makeWindowControllers] (self=0x105d5b0, _cmd=0x9464d69c) at

The self pointers are different (0x10471d0 vs. 0x105d5b0): you have
two MyDocument instances, and -makeWindowControllers is being called
on each instance.  My guess is that you've accidentally added an
instance of MyDocument to your nib.

--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

References: 
 >Why is -makeWindowControllers getting called twice? (From: David Scheidt <email@hidden>)

  • Prev by Date: Re: How to change the case of letters
  • Next by Date: Re: Integer as key in NSMutableDictionary
  • Previous by thread: Why is -makeWindowControllers getting called twice?
  • Next by thread: Re: Why is -makeWindowControllers getting called twice?
  • Index(es):
    • Date
    • Thread