Hi, I have the following code to run a save panel:
NSSavePanel *sp = [NSSavePanel savePanel];
[sp setExtensionHidden:NO];
[sp setTitle:NSLocalizedString(@"Export image to PNG file", @"")];
[sp setRequiredFileType:@"png"];
[sp setAccessoryView:bitmapAccessoryView];
[sp beginSheetModalForWindow:[document windowForSheet]
completionHandler:^(NSInteger result) {
if (result == NSOKButton) {
[self exportBitmapToFile:[[sp URL] path]
usingBitmapImageType:NSPNGFileType];
}
[self cleanupFromExportOfType:exportType];
}];
When running on Lion, some users are getting the following exception:
parentForItemsInColumn: is not supported for browsers with matrix delegates
The trace is as follows:
0 CoreFoundation 0x00007fff8608c986 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8581ed5e objc_exception_throw + 43
2 AppKit 0x00007fff8b854ecd -[NSBrowser itemAtIndexPath:] + 0
3 FinderKit 0x00007fff89456843 -[FI_TColumnView addColumn] + 110
4 AppKit 0x00007fff8b83c665 -[NSBrowser loadColumnZero] + 103
5 FinderKit 0x00007fff89459f5b -[FI_TColumnViewController openTarget] + 1228
6 FinderKit 0x00007fff89498db7 -[FIFinderViewGutsController
commonFinishInitialization] + 103
7 FinderKit 0x00007fff89495629 -[FIFinderViewGutsController buildBrowserView:]
+ 167
8 FinderKit 0x00007fff89495af1 -[FIFinderViewGutsController
setTargetPath:withViewStyle:] + 635
9 FinderKit 0x00007fff894964a4 -[FIFinderViewGutsController setViewStyle:] + 439
10 Foundation 0x00007fff8a794706 _NSSetObjectValueAndNotify + 261
11 FinderKit 0x00007fff8949b5b9 -[FIFinderView setViewStyle:] + 253
12 AppKit 0x00007fff8ba893ae -[NSSavePanel
beginSheetModalForWindow:completionHandler:] + 56
13 NovaMind5 0x0000000100098f80 -[NMExporter exportDocument:toFileOfType:] +
6080
I am unable to reproduce the problem here, but have had the problem reported by
several people running Lion.
Is there something I am doing wrong in my code? Could this be a Lion bug?
Thanks
Gideon
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]