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

Re: Another sandboxing snafu


  • Subject: Re: Another sandboxing snafu
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 17 Sep 2012 11:12:13 -0700

On Sep 13, 2012, at 4:15 PM, Graham Cox <email@hidden> wrote:

> 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.


This logging indicates a bug in the frameworks. If you can reproduce it, please log your app and reproducible steps to bugreporter.apple.com.

thanks!!

corbin

>
>
>
> 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


_______________________________________________

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: Graham Cox <email@hidden>
References: 
 >Another sandboxing snafu (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Sandboxing not so bad
  • Next by Date: Position of my item in the statusBar
  • Previous by thread: Re: Another sandboxing snafu
  • Next by thread: Re: Another sandboxing snafu
  • Index(es):
    • Date
    • Thread