> On 28 Oct 2014, at 15:51, Rich Siegel <
sie...@barebones.com> wrote:
>
> On Tuesday, October 28, 2014, Maarten Sneep <
maarte...@xs4all.nl> wrote:
>
>> The user interface in Xcode 6 is shuffled around enough so that I
>> can’t seem to find how to add a referencing outlet to the window. I’m
>> struggling at the step “The window should have its delegate and window
>> properties both bound to the File's Owner”, as it seems I can’t add a
>> referencing outlet for ‘window’.
>
> If you make the file's owner an NSWindowController, you should then be able to add a binding to the "window" property in the Outlets section.
Thanks, that sentence is a helpful addition on the instruction page.
>> The argument behaviour handling is nice, however, I wonder what
>> “String values (including file name paths) are not escaped or quoted
>> in any way” means in practice. How do you call the script internally?
>> Do string arguments with spaces end up in separate arguments from the
>> point of view of the script?
>
> No; each argument is an element of $ARGV, so the absence of quoting means simply that spaces and other such are unescaped.
OK, this is probably what I would expect, but I’ll check.
>> Adding the quoting would be nice as a future addition. (I was trying
>> to answer these questions, but alas).
>
> If it proves to be necessary for working functionality, I'll certainly consider it; but I'm trying not to add complexity in advance of demonstrated need. :-)
With this information I can try it myself and see what happens. That’ll make my needs more clear.
One argument form that may be missing is a command mode, like the update in ‘hg update’. The argument form for this would be just ‘value’. This would be useful in combination with a popup menu.
It would be nice to have an example to play with.
Best,
Maarten