Re: Talking to other apps - again

2014-08-06 Thread Roland King
I'm surprised IPC still sucks so badly. I haven't used XPC, but I thought it was a general-purpose solution for messaging between apps, not just for communicating with your app's own helper processes. I was just doing some reading about it actually to see what it’s all about. If you

Re: Talking to other apps - again

2014-08-06 Thread Gerriet M. Denkmann
On 6 Aug 2014, at 12:30, Roland King r...@rols.org wrote: What happened to the suggestions of using a domain socket or a directory both apps can read to do this? One thing at a time. This might be Step 3 or 4. First I have to investigate Step 1 (maybe a dead end) and Step 2. Kind regards,

Re: Talking to other apps - again

2014-08-06 Thread Gerriet M. Denkmann
On 6 Aug 2014, at 12:30, Roland King r...@rols.org wrote: On 6 Aug 2014, at 1:06 pm, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Step 1: Use XPC. Is there some other way to make this work? Or should I just forget about XPC? I’d forget about XPC, it’s not for sending data

Re: How do I hide/show a status bar?

2014-08-06 Thread Ken Thomases
On Aug 5, 2014, at 11:36 PM, Daryle Walker dary...@mac.com wrote: I’m using the Size Inspector for my document window’s XIB to create a Small Bottom Border as a Content Border. From the top to the bottom of my window, not counting the title and tool bars, I got: 1. 20 pts. space w/

Re: Talking to other apps - again

2014-08-06 Thread Gerriet M. Denkmann
On 6 Aug 2014, at 12:46, Jens Alfke j...@mooseyard.com wrote: On Aug 5, 2014, at 10:06 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Scripting Bridge SBObject has a sendEvent:id:parameters:. Not sure I want to use this. It seems like your best bet, actually. You are right. I

Re: Talking to other apps - again

2014-08-06 Thread Alex Zavatone
AppleScript can be a royal PITA with the syntax differences. You might want to read up on ASOC, AppleScript Objective-C. Shane Stanley has written a load on that (books too) and there is an ASOC dev mailing list that he frequents. Mailing list: ASObjC applescriptobjc-...@lists.apple.com URL:

Re: Talking to other apps - again

2014-08-06 Thread Gerriet M. Denkmann
On 6 Aug 2014, at 22:05, Alex Zavatone z...@mac.com wrote: By the way, if you do want to check out XPC, there is a good tutorial on objc.io here: http://www.objc.io/issue-14/xpc.html Very interesting. Thanks for the link! A quote: Let’s say we have two apps, and we would like them to be

Re: Talking to other apps - again

2014-08-06 Thread Roland King
Which is what I outlined some hours ago in a post on this thread. On 6 Aug 2014, at 11:43 pm, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 6 Aug 2014, at 22:05, Alex Zavatone z...@mac.com wrote: By the way, if you do want to check out XPC, there is a good tutorial on objc.io

Re: How do I hide/show a status bar?

2014-08-06 Thread Daryle Walker
On Aug 6, 2014, at 8:40 AM, Ken Thomases k...@codeweavers.com wrote: On Aug 5, 2014, at 11:36 PM, Daryle Walker dary...@mac.com wrote: I’m using the Size Inspector for my document window’s XIB to create a Small Bottom Border as a Content Border. From the top to the bottom of my window,

Re: How do I hide/show a status bar?

2014-08-06 Thread Ken Thomases
On Aug 6, 2014, at 1:09 PM, Daryle Walker dary...@mac.com wrote: When first turning off the status bar, Xcode’s debugger showed an exception, due to a constraints conflict. There’s a 22 pt gap between the WebView and the bottom of the window, and two 4 pt gaps between the Status Text and

Crash on wake from sleep - mmap issue?

2014-08-06 Thread Trygve Inda
This crash is when trying to read from a file (130mb) that has been mmap'd. It only happens rarely, and only when waking from sleep, but happens on both 10.8 and 10.9. It is almost like the mmap memory is not available right when the system is woken up Any ideas? Exception Type:

Does webView:setToolbarsVisible: also mean the window's toolbar?

2014-08-06 Thread Daryle Walker
In the WebUIDelegate (unofficial) protocol, there are functions getting/setting toolbar-visibility like webView:setToolbarsVisible:. Are these just for custom toolbar-like controls you make at the top of your content area, or is the official NSToolbar for the NSWindow also included? — Daryle

Re: Does webView:setToolbarsVisible: also mean the window's toolbar?

2014-08-06 Thread Kyle Sluder
On Wed, Aug 6, 2014, at 03:51 PM, Daryle Walker wrote: In the WebUIDelegate (unofficial) protocol, there are functions getting/setting toolbar-visibility like webView:setToolbarsVisible:. Are these just for custom toolbar-like controls you make at the top of your content area, or is the

Re: Talking to other apps - again

2014-08-06 Thread Shane Stanley
On 7 Aug 2014, at 12:41 am, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Apple Script Editor can do: tell application B get version end tell And so can your app. Add AppleScriptObjC.framework to your target, and add this to main.m: [[NSBundle mainBundle]