• 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: Tommy Nordgren <email@hidden>
  • Date: Mon, 4 May 2009 23:04:59 +0200

Are the listing from two different GDB sessions?
Otherwise, judging from the value of self in [MyDocument makeWindowControllers],
you have TWO instances of the MyDocument class. Is this intentional?
On May 4, 2009, at 3:38 AM, David Scheidt wrote:


I'm trying to figure out why my NSPersistantDocuement subclass's - makeWindowControllers is getting called twice. I'm also trying to figure out why a nib that I'm trying to load from a viewcontroller created by the window controller made by -makeWindowController isn't loading. I'm willing to bet they're related. I'm further willing to bet it's something I've done, but I'm stumped.

Some relevant bits of GDB:

gdb) where
#0 -[MyDocument makeWindowControllers] (self=0x10471d0, _cmd=0x9464d69c) at /...../MyDocument.m:84
#1 0x946e8e02 in -[NSDocumentController openUntitledDocumentAndDisplay:error:] ()
#2 0x946e895f in -[NSDocumentController(NSInternal) _openUntitled] ()
#3 0x946e87b1 in -[NSApplication _doOpenUntitled] ()
#4 0x946e7e95 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#5 0x946e76bc in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#6 0x912ee43f in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#7 0x912ee14f in _NSAppleEventManagerGenericHandler ()
#8 0x95bb4648 in aeDispatchAppleEvent ()
#9 0x95bb457e in dispatchEventAndSendReply ()
#10 0x95bb4425 in aeProcessAppleEvent ()
#11 0x917279a5 in AEProcessAppleEvent ()
#12 0x946e4f91 in _DPSNextEvent ()
#13 0x946e4630 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#14 0x946dd66b in -[NSApplication run] ()
#15 0x946aa8a4 in NSApplicationMain ()
#16 0x00002eee in main (argc=1, argv=0xbffff7e4) at /Users/dms/ Documents/....w/main.m:13
(gdb) go
Undefined command: "go". Try "help".
(gdb) cont
Continuing.
(gdb) continue
2009-05-03 21:31:04.429 mwa3[61892:813] MANAgedobjectContext is <NSManagedObjectContext: 0x104b220>
(gdb) continue
(gdb) continue
2009-05-03 21:31:08.161 mwa3[61892:813] Cannot create NSSet from object <BottlesDetailViewController: 0x104c470> of class BottlesDetailViewController
(gdb) where
#0 -[MyDocument makeWindowControllers] (self=0x105d5b0, _cmd=0x9464d69c) at /Users/dms/Documents/wine/mwa3-view/MyDocument.m: 84
#1 0x946e8e02 in -[NSDocumentController openUntitledDocumentAndDisplay:error:] ()
#2 0x946e895f in -[NSDocumentController(NSInternal) _openUntitled] ()
#3 0x946e87b1 in -[NSApplication _doOpenUntitled] ()
#4 0x946e7e95 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#5 0x946e76bc in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#6 0x912ee43f in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#7 0x912ee14f in _NSAppleEventManagerGenericHandler ()
#8 0x9138459c in _NSAppleEventManagerPreDispatchHandler ()
#9 0x95bb4648 in aeDispatchAppleEvent ()
#10 0x95bb457e in dispatchEventAndSendReply ()
#11 0x95bb4425 in aeProcessAppleEvent ()
#12 0x917279a5 in AEProcessAppleEvent ()
#13 0x946e4f91 in _DPSNextEvent ()
#14 0x946e4630 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#15 0x946dd66b in -[NSApplication run] ()
#16 0x946aa8a4 in NSApplicationMain ()
#17 0x00002eee in main (argc=1, argv=0xbffff7e4) at /Users/dms/ Documents/wine/mwa3-view/main.m:13
_______________________________________________


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

-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from outer space.
On congratulations for a fantastic parody, the producer replies : "What parody?"


Tommy Nordgren
email@hidden



_______________________________________________

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: Creating a NSHTTPCookie
  • Next by Date: Re: NSXMLParser frees itself on error?
  • Previous by thread: Re: Why is -makeWindowControllers getting called twice?
  • Next by thread: Creating a NSHTTPCookie
  • Index(es):
    • Date
    • Thread