• 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
*** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50


  • Subject: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
  • From: Cate Tony <email@hidden>
  • Date: Sun, 24 Aug 2008 17:03:30 -0500

This was a surprise. Here's the relevant code:

- (void)saveDocumentAs:(id)sender
{
NSSavePanel *panel = [NSSavePanel savePanel];

[panel setRequiredFileType:@"abcd"];
[panel beginSheetForDirectory: [documentPath stringByDeletingLastPathComponent]
file: [documentPathlastPathComponent]
modalForWindow: [NSApp mainWindow]
modalDelegate: self
didEndSelector: @selector(didEndSaveDocumentAs:returnCode:contextInfo:)
contextInfo: contextInfoString];
}


The message appears to come from the toolbar validation process:

Thread 0 Crashed:
0 libobjc.A.dylib 0x92433eba _objc_error + 116
1 libobjc.A.dylib 0x92433ef0 __objc_error + 52
2 libobjc.A.dylib 0x924328f7 _freedHandler + 58
3 com.apple.AppKit 0x9376bd43 _NSTargetForSendAction + 272
4 com.apple.AppKit 0x938332b0 -[NSToolbarItem _validateAsCommonItem:] + 104
5 com.apple.AppKit 0x938331ce -[NSToolbarItem validate] + 137
6 com.apple.AppKit 0x9372a04a -[NSToolbar validateVisibleItems] + 197
7 com.apple.AppKit 0x93729f76 -[NSToolbar _autovalidateVisibleToolbarItems] + 98
8 com.apple.AppKit 0x93729e5a -[NSToolbarView _doDelayedValidateVisibleToolbarItems] + 39
9 com.apple.Foundation 0x94e5495e __NSFireDelayedPerform + 382
10 com.apple.CoreFoundation 0x960d3b45 CFRunLoopRunSpecific + 4469
11 com.apple.CoreFoundation 0x960d3cf8 CFRunLoopRunInMode + 88
12 com.apple.HIToolbox 0x942ffda4 RunCurrentEventLoopInMode + 283
13 com.apple.HIToolbox 0x942ffbbd ReceiveNextEventCommon + 374
14 com.apple.HIToolbox 0x942ffa31 BlockUntilNextEventMatchingListInMode + 106
15 com.apple.AppKit 0x9369a505 _DPSNextEvent + 657
16 com.apple.AppKit 0x93699db8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
17 com.apple.AppKit 0x93692df3 -[NSApplication run] + 795
18 com.apple.AppKit 0x93660030 NSApplicationMain + 574
19 com.3caam.TestApp 0x00002a5e main + 24
20 com.3caam.TestApp 0x00002a2c _start + 210
21 com.3caam.TestApp 0x00002959 start + 41


If I put a retain on the panel, the error stops, but isn't it now leaking? Have I stumbled on a bug?

Tony
3 Cats And A Mac

_______________________________________________

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: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
      • From: Corbin Dunn <email@hidden>
    • Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: StatusItem to foreground app
  • Next by Date: Re: Core Data Question 1
  • Previous by thread: Re: StatusItem to foreground app
  • Next by thread: Re: *** -[NSSavePanel _blocksActionWhenModal:]: message sent to deallocated instance 0x15a05e50
  • Index(es):
    • Date
    • Thread