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

Save panel showing as a blank sheet


  • Subject: Save panel showing as a blank sheet
  • From: Nick Rogers <email@hidden>
  • Date: Fri, 27 Apr 2012 08:34:02 +0000 (GMT)

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?

Wishes,
Nick
Sent from iCloud
_______________________________________________

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: Save panel showing as a blank sheet
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: DataSource modified while TableView is displaying data
  • Next by Date: Re: SMJobBless
  • Previous by thread: Re: Declaring Variables - Setting to nil VS Not Setting?
  • Next by thread: Re: Save panel showing as a blank sheet
  • Index(es):
    • Date
    • Thread