Re: What is "TypeA -> TypeB"?

2015-07-02 Thread Marco S Hyman
> > I can write in-line handlers for this, but I'm trying to write a separate > method, and just assign the method as a handler, and I can't seem to get the > signature right. It gets interesting when you want to also specify that the handler uses the C calling convention to pass as a callbac

Re: What is "TypeA -> TypeB"?

2015-07-02 Thread Rick Mann
> On Jul 2, 2015, at 14:41 , Quincey Morris > wrote: > > On Jul 2, 2015, at 13:54 , Rick Mann wrote: >> >>> On Jul 2, 2015, at 13:51 , Jonathan Hull wrote: >>> >>> It is a closure which takes TypeA and returns TypeB. >> >> I thought those were written as this: >> >> (TypeA) -> TypeB

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-02 Thread Kevin Meaney
I had similar issues when wanting to load a framework. My specific problem was loading the framework in an application that was then being loaded when I was using IBDesignable. This article by Mike Ash was extremely helpful at understanding what was happening. https://www.mikeash.com/pyblog/fr

Re: What is "TypeA -> TypeB"?

2015-07-02 Thread Quincey Morris
On Jul 2, 2015, at 13:54 , Rick Mann wrote: > >> On Jul 2, 2015, at 13:51 , Jonathan Hull > > wrote: >> >> It is a closure which takes TypeA and returns TypeB. > > I thought those were written as this: > > (TypeA) -> TypeB > > With parentheses around the parameter

Re: What is "TypeA -> TypeB"?

2015-07-02 Thread Rick Mann
> On Jul 2, 2015, at 13:51 , Jonathan Hull wrote: > > It is a closure which takes TypeA and returns TypeB. I thought those were written as this: (TypeA) -> TypeB With parentheses around the parameter list. -- Rick Mann rm...@latencyzero.com

Re: What is "TypeA -> TypeB"?

2015-07-02 Thread Jonathan Hull
It is a closure which takes TypeA and returns TypeB. Thanks, Jon > On Jul 2, 2015, at 1:29 PM, Rick Mann wrote: > > I saw this in a Swift HTTP server: > >typealias Handler = HttpRequest -> HttpResponse > > You can see the whole thing here: > > https://github.com/glock45/swifter/blo

What is "TypeA -> TypeB"?

2015-07-02 Thread Rick Mann
I saw this in a Swift HTTP server: typealias Handler = HttpRequest -> HttpResponse You can see the whole thing here: https://github.com/glock45/swifter/blob/master/Common/HttpServer.swift I can write in-line handlers for this, but I'm trying to write a separate method, and just ass

Re: Problem having a framework working in one of my targets (a screensaver)

2015-07-02 Thread Juanjo Conti
More on this. It I change the Runpath Search Path for the target in question to use loader_path instead of executable_path, the error still mention executable_path. Why? http://i.imgur.com/yIoTWNe.png On Wed, Jul 1, 2015 at 5:04 PM, Juanjo Conti wrote: > Hi! > > I've an XCode Swift project with

Re: Issues with hiding NSTableColumns with autolayout

2015-07-02 Thread Ken Thomases
On Jul 2, 2015, at 12:25 PM, Jensen, Stephen C. (AFRC-R) wrote: > > The problem occurs when the user hides an NSTableColumn… I start getting > errors. For example, when I hide the column with the identifier “orgCode”, I > get the following: > > 2015-07-02 09:57:30.560 myApp[9975:303] Unable t

Issues with hiding NSTableColumns with autolayout

2015-07-02 Thread Jensen, Stephen C. (AFRC-R)
I’m having a frustrating issue with an OSX app I am trying to write. Here is the issue: I have a single NSTableView with a contextual menu that allows the user to show or hide columns. Easy enough… lots of sample code out there to make that happen. The working line is this: // toggle the c

Re: Swift 2.0

2015-07-02 Thread lowell!
Apple has a prerelease version for Swift 2 on the iBooks Store: https://itunes.apple.com/us/book/swift-programming-language/id1002622538 ——lowell > On Jul 2, 2015, at 9:59 AM, William Squires wrote: > > There is (or was) a PDF you could get in the Bookstore.app direct from Apple > vi

Re: Swift 2.0

2015-07-02 Thread John Tsombakos
There’s this: The Swift Programming Language (Swift 2 Prerelease) https://itunes.apple.com/us/book/swift-programming-language/id1002622538?mt=11 > On Jul 2, 2015, at 12:59 PM, William Squires wrote: > > There is

Swift 2.0

2015-07-02 Thread William Squires
There is (or was) a PDF you could get in the Bookstore.app direct from Apple vis-a-vis the original Swift (1.0). Has this document been updated (for Swift 2.0) or even a new "changes to Swift" document, or are we waiting for the "official" release of Xcode 7, and/or a new OS X 10.11 or some such