Forum Navigation
You need to log in to create posts and topics.

NSPanel and Sandboxing problem

Posted by: fblistserve <fblistserve@...>

On Sep 17, 2012, at 9:41 AM, Robert Covington <artlythere@mindspring.com> wrote:


It just beeps when Sandboxed, doesn't 'pop'. If not sandboxed, works fine.

Same problem here ( OS X 10.8.1 Xcode 4.4 )


I noticed this message is the console log that appears to be related to PowerBox. Some of the comments on Apple’s developer forum ( read a lot, so don’t have it in from of me now----one was: https://devforums.apple.com/message/628026#628026 but I don’t think it had the comment I’m remembering ) indicate PowerBox might start another Interprocess communication/service ( i.e. xpc ) 
9/17/12 11:15:44.907 AM com.apple.security.pboxd[1128]: __block_global_2: connection failed unexpectedly; terminating process; delegate was (
0   RemoteViewServices                  0x00007fff88c42d49 -[NSRemoteServiceConnection setDelegate:] + 253
1   com.apple.security.pboxd            0x000000010c2a9b4b com.apple.security.pboxd + 23371
2   com.apple.security.pboxd            0x000000010c2a9f17 com.apple.security.pboxd + 24343
3   com.apple.security.pboxd            0x000000010c2a8f72 com.apple.security.pboxd + 20338
4   libxpc.dylib                        0x00007fff8d8eb4a2 _xpc_connection_recv_message + 699
5   libxpc.dylib                        0x00007fff8d8eb16d _xpc_connection_wakeup_recv + 165
6   libxpc.dylib                        0x00007fff8d8e98b4 _xpc_connection_wakeup2 + 1799
7   libxpc.dylib                        0x00007fff8d8e917c _xpc_connection_wakeup + 145
8   libdispatch.dylib                   0x00007fff848160fa _dispatch_client_callout + 8
9   libdispatch.dylib                   0x00007fff848182d7 _dispatch_source_invoke + 691
10  libdispatch.dylib                   0x00007fff84817349 _dispatch_queue_invoke + 72
11  libdispatch.dylib                   0x00007fff8481748c _dispatch_queue_drain + 180
12  libdispatch.dylib                   0x00007fff84817335 _dispatch_queue_invoke + 52
13  libdispatch.dylib                   0x00007fff84817207 _dispatch_worker_thread2 + 249
14  libsystem_c.dylib                   0x00007fff80da8ceb _pthread_wqthread + 404
15  libsystem_c.dylib                   0x00007fff80d931b1 start_wqthread + 13
)
FWIW: Running your code in a new/demo Cocoa Xcode project and it works fine sandboxed: http://www.brilorsoftware.com/TestPanelCocoa.zip

No more programming time today. Hope this gives you a clue. btw: I ran out of time to test but it seems ( based on some forum comments and the way this is acting ) that there might be another invisible window when the modal dialog appears(?). 

Brian S.


To unsubscribe, e-mail: fbcocoa-unsubscribe@welovegod.org For additional commands, e-mail: fbcocoa-help@freegroups.net