On Apr 27, 2012, at 2:34 AM, Nick Rogers wrote: > Hi, > > I'm running a NSSavePanel as sheet, but on some systems the sheet is totally > blank and having odd dimensions like twice the normal height. > > code is: > NSSavePanel *panel = [NSSavePanel savePanel]; > [panel setRequiredFileType:@"rrs"]; > [panel setExtensionHidden:YES]; > [panel setCanCreateDirectories:YES]; > [NSDateFormatter > setDefaultFormatterBehavior:NSDateFormatterBehavior10_4]; > NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; > [dateFormatter setDateFormat:@"MMMM dd, yyyy, h_mm_ss a"]; > NSString *suggestedFileName = [NSString stringWithFormat:@"session file > %@", [dateFormatter stringFromDate:[NSDate date]]]; > [panel beginSheetForDirectory:nil > file:suggestedFileName > modalForWindow:window > modalDelegate:self > > didEndSelector:@selector(savePanelDidEnd:returnCode:contextInfo:) > contextInfo:NULL]; > I also saw something related to errors in mounting of a volume in system log. > Could it be the reason? > Any thoughts?
Just checking: You are running the save panel from the main thread, right? And you're sure of that, right? Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
