WebView.stopLoading

2015-07-13 Thread Juanjo Conti
Hello! I'd like to ask how do I stop a WebView for continue loading. I tried to use stopLoading but I still get events WebViewProgressStartedNotification and WebViewProgressFinishedNotification. -- Juanjo Conti http://goog_2023646312>@carouselapps.com > Software Engineer - Carousel Apps

Re: Terminate app

2015-07-13 Thread Jens Alfke
I suspect it’s to make method calls curry-able. —Jens ___ 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/Unsubs

Re: Terminate app

2015-07-13 Thread Charles Srstka
On Jul 13, 2015, at 7:15 PM, Quincey Morris wrote: > > On Jul 13, 2015, at 16:55 , Charles Srstka > wrote: >> >> What’s the intended use of that, to force an instance to use a superclass’s >> implementation of some method instead of the overridden version? If

Re: Terminate app

2015-07-13 Thread Quincey Morris
On Jul 13, 2015, at 16:55 , Charles Srstka wrote: > > What’s the intended use of that, to force an instance to use a superclass’s > implementation of some method instead of the overridden version? If so, that > seems really open to abuse… I dunno, personally. But it was discussed in the old Sw

Re: Terminate app

2015-07-13 Thread Charles Srstka
On Jul 13, 2015, at 11:48 AM, Quincey Morris wrote: > > Note that in Swift, you can write SomeClass.instanceMethod > (instanceOfSomeClass, …) as an equivalent of > instanceOfSomeClass.instanceMethod (…), and the error message you got is > helpfully trying to show you how to do that. :) You c

Re: NSPredicate or Collection operators?

2015-07-13 Thread Alex Zavatone
On Jul 13, 2015, at 1:27 PM, Sandor Szatmari wrote: > Why not write it like so... > > Sandor Szatmari > >> On Jul 13, 2015, at 10:52, Alex Zavatone wrote: >> >> Ahh, well, it turns out that I had the code right in the first place. >> >> Here it is if anyone needs to do the same thing. >> >>

Re: NSPredicate or Collection operators?

2015-07-13 Thread Sandor Szatmari
Why not write it like so... Sandor Szatmari > On Jul 13, 2015, at 10:52, Alex Zavatone wrote: > > Ahh, well, it turns out that I had the code right in the first place. > > Here it is if anyone needs to do the same thing. > > BOOL isItemPresentWithIdenticalValue = NO; > >NSArray *allObj

Re: Terminate app

2015-07-13 Thread Quincey Morris
On Jul 13, 2015, at 09:48 , Quincey Morris wrote: > > NSApplication.sharedApplication.terminate(self) Sorry, I meant: > NSApplication.sharedApplication ().terminate(self) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Terminate app

2015-07-13 Thread Quincey Morris
On Jul 13, 2015, at 09:25 , Jan E. Schotsman wrote: > > NSApplication.terminate(self) // ! Cannot invoke 'terminate' with an > argument list of type '(AppDelegate)' You’re mistakenly invoking the method on the class, not on the application instance. Try: NSApplication.sharedApplicati

Terminate app

2015-07-13 Thread Jan E. Schotsman
Hello, How can I terminate my app from the delegate in Swift? I tried this: NSApplication.terminate(self) // ! Cannot invoke 'terminate' with an argument list of type '(AppDelegate)' I've tried some variants but all of them error. I suppose I could just use nil for the argument but I'd li

Re: NSPredicate or Collection operators?

2015-07-13 Thread Alex Zavatone
Ahh, well, it turns out that I had the code right in the first place. Here it is if anyone needs to do the same thing. BOOL isItemPresentWithIdenticalValue = NO; NSArray *allObjects = [self.geofenceObjects allValues]; NSArray *allOccurrencesOfSourceValue = [allObjects valueForKey:

NSPredicate or Collection operators?

2015-07-13 Thread Alex Zavatone
Hi all. I've got a dictionary of objects that contain properties and need to check if one object has a certain value. I was thinking I could use collection operators and build an array where the value of an an object's property matches that I'm looking for. Then if the array contains that valu

[PSA] native AppleScripting support for Swift

2015-07-13 Thread has
Hi all, In light of OS X 10.11 addressing some longstanding deficiencies in NSAppleEventDescriptor, I've been dusting off a fork of my old objc-appscript project, now renamed AppleEventBridge, modernizing and extending it both to take advantage of improvements to ObjC in the last few years an

Re: Swift description

2015-07-13 Thread Roland King
> > Note that there is a distinction between "print an object" and "perform > string interpolation on an object and print that string". > >print(c)// I have the lot >print("\(c)") // I have the lot >debugPrint(c) // I am CustomDebugStringConvertible >debu

Re: Dependency tracking with asset catalog and interface builder compilers

2015-07-13 Thread Uli Kusterer
This is not the Apple Developer Tools team. This is a mailing list where developers using Apple's Cocoa frameworks hang out. > On 12 Jul 2015, at 21:48, Jake Petroules wrote: > > Apple Developer Tools Team, > > I'm doing some work integrating Interface Builder tools like the asset > catalog c