The problem is with your calling convention in specified line. Notice that when you call a method which is part of a class you should write the parameter name and then value.
class AppDelegate: NSObject { var statusString : String? // 1. let someThing = SomeClass(myStatusHandler) let someThing = SomeClass(statusHandler: myStatusHandler) func myStatusHandler(s: String) { statusString = s } } class SomeClass { var statusHandler: (String) -> Void init( statusHandler: (String) -> Void) { self.statusHandler = statusHandler } } Now it does compile. — Muhammad _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com