Problematic code follows. [I hope that] the problem is wholly outlined in the question above. Thanks in advance. MJB.
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate
{
var some_string:NSString = "one"
func application ( application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]? ) -> Bool
{
println("init...")
self.addObserver( self, forKeyPath: "some_string", options: nil, context: nil )
self.some_string = "two"
return true
}
override func observeValueForKeyPath ( keyPath: String, ofObject object: AnyObject, change: [NSObject : AnyObject], context: UnsafeMutablePointer<Void> )
{
println("observeValueForKeyPath...")
}
}