• 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: Save panel showing as a blank sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save panel showing as a blank sheet


  • Subject: Re: Save panel showing as a blank sheet
  • From: Nick Rogers <email@hidden>
  • Date: Fri, 27 Apr 2012 18:01:03 +0000 (UTC)

Thanks for the interest.


Yes, the panel is run from the main thread.


The problem has occurred only thrice on different user's machines in a span of 2 years.

In one case I was able to get system log and it showed some problem with getting a mounted volume's attributes.

The log also indicated an error in loading some framework. Was long ago, and I haven't kept the details.


I'm just guessing that it may have to do something with the elements that needs to be shown in a panel, like Devices, Volumes etc.

Also does something, like a broken framework problem on a mac, could exist?


Thanks,

Nick

Sent from iCloud

On Apr 27, 2012, at 09:22 PM, Nick Zitzmann <email@hidden> wrote:







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@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: 
 >Re: Save panel showing as a blank sheet (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Sandbox Frustrations - A Good Idea handicapped by poor docs
  • Next by Date: Re: Sandbox Frustrations - A Good Idea handicapped by poor docs
  • Previous by thread: Re: Save panel showing as a blank sheet
  • Next by thread: nstextfield question
  • Index(es):
    • Date
    • Thread