• 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
Another sandboxing snafu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another sandboxing snafu


  • Subject: Another sandboxing snafu
  • From: Graham Cox <email@hidden>
  • Date: Fri, 14 Sep 2012 09:15:20 +1000

Grrr... and here's exactly the sort of stupid thing that I was referring to a moment ago in another thread...


I'm attempting to show an NSOpenPanel as a sheet, app is sandboxed. This has always worked perfectly fine:

	NSOpenPanel*	op = [NSOpenPanel openPanel];

	[op setAllowsMultipleSelection:NO];
	[op setCanChooseDirectories:NO];
	[op setAllowedFileTypes:[NSImage imageFileTypes]];

	void (^completionHandler)(NSInteger result) = ^(NSInteger result)
	{
		if( result == NSFileHandlingPanelOKButton )
		{

			// do stuff with URL from panel (omitted)
		}
	};


	[op beginSheetModalForWindow:[self windowForSheet] completionHandler:completionHandler];


But now when this code runs, the following is logged:


14/09/12 9:02:18.578 AM WindowServer[108]: CGXSetWindowShape: Operation on a window 0xf87 requiring rights kCGSWindowRightOwner by caller Artboard
14/09/12 9:02:18.578 AM Artboard[47282]: _NXPlaceWindow: error setting window shape (1001)
14/09/12 9:02:18.583 AM com.apple.security.pboxd[47286]: <FI_TSidebarSplitView: 0x7fd3e34728c0>: the delegate <FI_TSidebarSplitterController: 0x7fd3e346ce50> was sent -splitView:resizeSubviewsWithOldSize: and left the subview frames in an inconsistent state:
14/09/12 9:02:18.584 AM com.apple.security.pboxd[47286]: Split view bounds: {{0, 0}, {0, 0}}
14/09/12 9:02:18.584 AM com.apple.security.pboxd[47286]:     Subview frame: {{0, 0}, {-316, 0}}
14/09/12 9:02:18.584 AM com.apple.security.pboxd[47286]:     Subview frame: {{-315, 0}, {315, 0}}
14/09/12 9:02:18.585 AM com.apple.security.pboxd[47286]: The subview frames are not in the same order as the subviews array. NSSplitView requires that these orders be kept consistent, otherwise behavior is undefined.



Anyone got this simple use of NSOpenPanel to work with sandboxing?


--Graham



_______________________________________________

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: Another sandboxing snafu
      • From: Corbin Dunn <email@hidden>
    • Re: Another sandboxing snafu
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Sandboxing not so bad
  • Next by Date: Re: Sandboxing not so bad
  • Previous by thread: Re: Sandboxing not so bad
  • Next by thread: Re: Another sandboxing snafu
  • Index(es):
    • Date
    • Thread