Re: Language options: Objective-C, Swift, C or C++?

2015-06-17 Thread Graham Cox
> On 13 Jun 2015, at 1:31 pm, Quincey Morris > wrote: > > One of the biggest old-school reason is source duplication. You have to write > everything “twice”, once in @interface, once in @implementation. This has > been mitigated somewhat over the years, but Obj-C is literally twice the > num

Scary Stuff!

2015-06-17 Thread Dave
Hi, Has everyone seen this? http://www.theregister.co.uk/2015/06/17/apple_hosed_boffins_drop_0day_mac_ios_research_blitzkrieg/ Scares the living daylights out of me! Cheers Dave _

Re: Language options: Objective-C, Swift, C or C++?

2015-06-17 Thread Quincey Morris
On Jun 17, 2015, at 00:56 , Graham Cox wrote: > > To me this is actually a good thing that I’ll be sorry to see go away in > Swift. > > With a separate header that only contains the public stuff, I can see at a > glance what a class does without being overwhelmed by its implementation > detai

Re: access modifiers in protocols

2015-06-17 Thread Roland King
> On 17 Jun 2015, at 14:12, Quincey Morris > wrote: > > On Jun 16, 2015, at 22:37 , Roland King > wrote: >> >> No - can’t have a stored property in an extension > > (Someone just asked basically the same question in the dev forums, but with a > different example. Was t

Re: Scary Stuff!

2015-06-17 Thread Torsten Curdt
Wow - and not fixed in those 6 months. That does not sound good. ___ 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 H

Why doesn't my Swift method get called.

2015-06-17 Thread James Cicenia
I added a swift file to my project. I wanted to use an open source sidebar. I have checked my targets, etc. Xcode compiles, builds and runs my code without a problem. But when I debug it, it just goes over and never into the method. Why would it do that? It builds and compiles, and even if I clic

Re: Scary Stuff!

2015-06-17 Thread Dave
> On 17 Jun 2015, at 09:44, Torsten Curdt wrote: > > Wow - and not fixed in those 6 months. > That does not sound good. That’s the scariest part! I thought that Apple might have made an announcement about it after the article appeared on "The Register", but not seen anything yet! _

Re: Why doesn't my Swift method get called.

2015-06-17 Thread Dave
What happens when you put a breakpoint in the method, rather then trying to step into it? > On 17 Jun 2015, at 14:47, James Cicenia wrote: > > I added a swift file to my project. I wanted to use an open source sidebar. > > I have checked my targets, etc. > Xcode compiles, builds and runs my co

[OT] We appeared in Product Hunt

2015-06-17 Thread Juanjo Conti
Hey! Today we appeared in Product Hunt http://www.producthunt.com/tech/screensaver-ninja Yesterday we lunched our 1.0 version for Mac OS X. Thanks for all the support in this mailing list! -- Juanjo Conti http://goog_2023646312>@carouselapps.com > Software Engineer - Carousel Apps

Re: [OT] We appeared in Product Hunt

2015-06-17 Thread Maxthon Chan
Congratulations bro :) Max > On Jun 18, 2015, at 00:34, Juanjo Conti wrote: > > Hey! Today we appeared in Product Hunt > http://www.producthunt.com/tech/screensaver-ninja > > Yesterday we lunched our 1.0 version for Mac OS X. Thanks for all the > support in this mailing list! > > -- > > Jua

Re: Why doesn't my Swift method get called.

2015-06-17 Thread James Cicenia
Hmm, I had a bad UIImage(named: "menu-new”) should have been menu-news as an array element in the parameter. > On Jun 17, 2015, at 9:09 AM, Dave wrote: > > What happens when you put a breakpoint in the method, rather then trying to > step into it? > >> On 17 Jun 2015, at 14:47, James Cic

Re: Language options: Objective-C, Swift, C or C++?

2015-06-17 Thread Ariel Feinerman
Why just do not use some clone of Smalltalk for Mac OS X before inventing new language? On Wed, Jun 17, 2015 at 11:16 AM, Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Jun 17, 2015, at 00:56 , Graham Cox wrote: > > > > To me this is actually a good thing that I’ll be sorry to

Re: Scary Stuff!

2015-06-17 Thread Jens Alfke
As usual, don’t put too much weight into the bite-size digests from the press, especially the Register, which has a track record of sensationalism. Unfortunately the actual truth is fairly bad. I recommend reading the paper: https://drive.google.com/file/d/0BxxXk1d3yyuZOFlsdkNMSGswSGs/view

Re: Language options: Objective-C, Swift, C or C++?

2015-06-17 Thread Jens Alfke
> On Jun 17, 2015, at 12:30 PM, Ariel Feinerman wrote: > > Why just do not use some clone of Smalltalk for Mac OS X before inventing > new language? Maybe because it wouldn’t achieve any of Apple’s stated goals, like high performance and type-safety? I used Smalltalk-80 extensively back in th

Re: Scary Stuff!

2015-06-17 Thread Doug Hill
This is indeed some scary stuff. The problem with apps creating a local web server for Web Socket support also seems particularly worrisome. I second Jens’ suggestion to read the paper because it will cause eyes to bug out. For most of the security problems, you could rewrite your app to opt-out

Re: Language options: Objective-C, Swift, C or C++?

2015-06-17 Thread Scott Ribe
On Jun 17, 2015, at 2:04 PM, Jens Alfke wrote: > > Guys, talking about Swift vs. Obj-C/C/C++ has a slight amount of use, but if > we start dragging everyone’s pet language into the fray (Algol? Burroughs > B5000 assembly?) Dylan, dammit ;-) -- Scott Ribe scott_r...@elevated-dev.com http://ww

Re: Scary Stuff!

2015-06-17 Thread Michael David Crawford
I was a "Debug Meister" for Apple in the mid-90s. It was fascinating work but I applied for an internal transfer because I had the sense that my work would never be finished. That is, we will never run out of bugs. It gets me down sometimes. Michael David Crawford, Consulting Software Engineer m

Re: Scary Stuff!

2015-06-17 Thread Jens Alfke
> On Jun 17, 2015, at 1:17 PM, Doug Hill wrote: > > For most of the security problems, you could rewrite your app to opt-out of > the insecure APIs, system services, etc. and use your own implementation. > (see Google Chrome not storing passwords in the Keychain anymore) Does it? I’m using Ch

Re: Scary Stuff!

2015-06-17 Thread Britt Durbrow
I’ve skimmed the paper; and it seems to me that there is no API/system-level solution possible. I’m not familiar with the Keychain API; owing to not having needed to use it, but it seems to me that a best practices approach can solve that issue: check that the keychain item’s properties (ACL mo

Re: Scary Stuff!

2015-06-17 Thread Doug Hill
> On Jun 17, 2015, at 2:07 PM, Jens Alfke wrote: > >> On Jun 17, 2015, at 1:17 PM, Doug Hill > > wrote: >> >> For most of the security problems, you could rewrite your app to opt-out of >> the insecure APIs, system services, etc. and use your own implementation. >>

recycleURLs with authorization

2015-06-17 Thread sqwarqDev
Hi list I'm trying to move some files to the trash with my app, but I need OS X to throw an authentication dialog when the requested file needs permission to be moved. I need a solution that will work from 10.6 onwards, so I've been looking at NSWorkspace's recycleURLs rather than NSFileManag

Re: recycleURLs with authorization

2015-06-17 Thread Sean McBride
On Thu, 18 Jun 2015 08:16:48 +0700, sqwarqDev said: >Hi list > >I'm trying to move some files to the trash with my app, but I need OS X >to throw an authentication dialog when the requested file needs >permission to be moved. > >I need a solution that will work from 10.6 onwards, so I've been loo

[OT] We also appeared in Product Hunt

2015-06-17 Thread Sal Conigliaro
We also made it onto Product Hunt! http://www.producthunt.com/tech/fresh-air-2 It's an app for the Watch and iPhone that provides real-time air quality info from the U.S. EPA -- Sal Conigliaro, e design http://www.erinedesign.com @sconig ___ Cocoa-dev

Re: recycleURLs with authorization

2015-06-17 Thread sqwarqDev
Thanks Sean That's certainly interesting, but seems like overkill in my case. SMJobBless seems to be addressing a bigger problem - how to let an app run privileged tasks without authorizing the entire app and without repeatedly asking the user for a password. That's not quite what I want. I ac

Re: [OT] We also appeared in Product Hunt

2015-06-17 Thread Maxthon Chan
Congratulations :-) BTW, if your app have the ability to scrape similar data for China it will be VERY welcomed. Chinese are very concerned about air quality now. > On Jun 18, 2015, at 10:37, Sal Conigliaro wrote: > > We also made it onto Product Hunt! > http://www.producthunt.com/tech/fresh-a