Re: Safe time to add accessory view to NSSavePanel in sandboxed app?
Re: Safe time to add accessory view to NSSavePanel in sandboxed app?
- Subject: Re: Safe time to add accessory view to NSSavePanel in sandboxed app?
- From: Mike Abdullah <email@hidden>
- Date: Thu, 16 Jul 2015 09:17:36 +0100
> On 16 Jul 2015, at 02:33, Graham Cox <email@hidden> wrote:
>
>
> Pertinent details below - the line marked <com.myapp> contains the code listed previously, which is an action method invoked by a menu command.
>
>
> Date/Time: 2015-07-15 10:32:36.027 -0400
> OS Version: Mac OS X 10.10.4 (14E46)
> Report Version: 11
> Anonymous UUID: 2614ADC0-4001-6CA3-540E-6108024E52C9
>
> Sleep/Wake UUID: 473E70D2-38EF-44CC-B867-61044E46EA90
>
> Time Awake Since Boot: 190000 seconds
> Time Since Wake: 2600 seconds
>
> Crashed Thread: 0 Dispatch queue: com.apple.main-thread
>
> Exception Type: EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_INVALID_ADDRESS at 0x000007f9a74a1988
>
> VM Regions Near 0x7f9a74a1988:
> MALLOC_LARGE 000000012db2b000-000000012dd27000 [ 2032K] rw-/rwx SM=PRV
> -->
> __TEXT 0000123400000000-00001234004a5000 [ 4756K] r-x/rwx SM=COW /System/Library/Extensions/AppleIntelHD4000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD4000GraphicsGLDriver
>
> Application Specific Information:
> objc_msgSend() selector name: invalid
> Performing @selector(exportAction:) from sender NSMenuItem 0x7f9a69c27d20
>
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0 libobjc.A.dylib 0x00007fff8b5b80dd objc_msgSend + 29
> 1 com.apple.AppKit 0x00007fff9231bb94 -[NSView _setSuperview:] + 2591
> 2 com.apple.AppKit 0x00007fff9231ad78 -[NSView addSubview:] + 436
> 3 com.apple.AppKit 0x00007fff92346432 -[NSWindow setContentView:] + 640
> 4 com.apple.ViewBridge 0x00007fff93d460c1 setWindowContentView + 75
> 5 com.apple.ViewBridge 0x00007fff93d34d42 -[NSRemoteViewBase setAccessoryView:] + 208
> 6 <com.myapp> 0x000000010ba36a1d 0x10b9ab000 + 571933
> 7 libsystem_trace.dylib 0x00007fff8ba8acd7 _os_activity_initiate + 75
> 8 com.apple.AppKit 0x00007fff92530eb1 -[NSApplication sendAction:to:from:] + 452
> 9 com.apple.AppKit 0x00007fff92530c4e -[NSMenuItem _corePerformAction] + 382
> 10 com.apple.AppKit 0x00007fff9253097c -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
> 11 libsystem_trace.dylib 0x00007fff8ba8acd7 _os_activity_initiate + 75
> 12 com.apple.AppKit 0x00007fff925f7b00 -[NSMenu performActionForItemAtIndex:] + 131
> 13 com.apple.AppKit 0x00007fff925f7a66 -[NSMenu _internalPerformActionForItemAtIndex:] + 35
> 14 com.apple.AppKit 0x00007fff925f78b2 -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 107
> 15 com.apple.AppKit 0x00007fff92518d6b NSSLMMenuEventHandler + 724
> 16 com.apple.HIToolbox 0x00007fff8bc12b6c DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1260
> 17 com.apple.HIToolbox 0x00007fff8bc11fae SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 386
> 18 com.apple.HIToolbox 0x00007fff8bc27cb6 SendEventToEventTarget + 40
> 19 com.apple.HIToolbox 0x00007fff8bc61f45 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 428
> 20 com.apple.HIToolbox 0x00007fff8bc9fb8d SendMenuCommandWithContextAndModifiers + 59
> 21 com.apple.HIToolbox 0x00007fff8bc9fb30 SendMenuItemSelectedEvent + 188
> 22 com.apple.HIToolbox 0x00007fff8bc9fa09 FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 96
> 23 com.apple.HIToolbox 0x00007fff8bca0481 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 702
> 24 com.apple.HIToolbox 0x00007fff8bca00fe _HandleMenuSelection2 + 446
> 25 com.apple.AppKit 0x00007fff92436ce0 _NSHandleCarbonMenuEvent + 277
> 26 com.apple.AppKit 0x00007fff9236dbfd _DPSNextEvent + 1828
> 27 com.apple.AppKit 0x00007fff9236ce58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
> 28 com.apple.AppKit 0x00007fff92362af3 -[NSApplication run] + 594
> 29 com.apple.AppKit 0x00007fff922df244 NSApplicationMain + 1832
What does your code for setting the accessory view look like? Is it trying to be clever and re-use existing accessory views, or is a fresh one created each time?
_______________________________________________
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