Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Philip Ershler
> On Jul 29, 2015, at 11:57 PM, Carl Hoefs > wrote: > > >>> On Jul 29, 2015, at 10:30 PM, Joar Wingfors wrote: >>> On 29 Jul 2015, at 16:52, Jens Alfke wrote: On Jul 29, 2015, at 4:32 PM, Roland King wrote: That's what I think to and the filth spread to the xcod

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Charles Srstka
> On Jul 30, 2015, at 12:57 AM, Carl Hoefs > wrote: > > An additional clue to this puzzle is that not everyone who is subscribed to > the list received such messages. I, for one, did not. > -Carl Yeah, why is that? We’ve all been getting them, but you haven't! Why is that, Carl? Why haven’t t

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Carl Hoefs
> On Jul 29, 2015, at 10:30 PM, Joar Wingfors wrote: > >> On 29 Jul 2015, at 16:52, Jens Alfke wrote: >> >>> On Jul 29, 2015, at 4:32 PM, Roland King wrote: >>> >>> That's what I think to and the filth spread to the xcode list, or spread >>> from the xcode list. I wrote to the admins on bot

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Joar Wingfors
> On 29 Jul 2015, at 16:52, Jens Alfke wrote: > > >> On Jul 29, 2015, at 4:32 PM, Roland King wrote: >> >> That's what I think to and the filth spread to the xcode list, or spread >> from the xcode list. I wrote to the admins on both lists and asked them to >> remove this scum feeder from a

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Charles Srstka
> On Jul 29, 2015, at 6:52 PM, Jens Alfke wrote: > > I don’t think there’s any way to figure out which subscriber it is. The > spammer would almost certainly have subscribed under an anonymous Gmail or > Yahoo address, not something easily detectable like > “scum_fee...@spamsalot.biz”. > > —J

Timeouts in NSURLSession

2015-07-29 Thread Rick Mann
I'm starting hundreds of download tasks on a single NSURLSession. The session nicely limits the number of concurrent downloads, and everything seems to behave, until I some time has elapsed equal to the default value of timeoutIntervalForRequest, 60 seconds (I don't currently adjust this). Othe

Re: Techniques for limiting concurrent downloads via NSURLSession

2015-07-29 Thread Rick Mann
> On Jul 29, 2015, at 16:55 , Jens Alfke wrote: > > >> On Jul 29, 2015, at 4:46 PM, Rick Mann wrote: >> >> In my application I have to download hundreds to maybe a thousand files for >> each "thing" that gets downloaded. I tried just kicking off a bunch of >> download tasks in a loop, but e

Re: Techniques for limiting concurrent downloads via NSURLSession

2015-07-29 Thread Jens Alfke
> On Jul 29, 2015, at 4:46 PM, Rick Mann wrote: > > In my application I have to download hundreds to maybe a thousand files for > each "thing" that gets downloaded. I tried just kicking off a bunch of > download tasks in a loop, but eventually I either get "Too many open files" > errors, or I

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Jens Alfke
> On Jul 29, 2015, at 4:32 PM, Roland King wrote: > > That's what I think to and the filth spread to the xcode list, or spread from > the xcode list. I wrote to the admins on both lists and asked them to remove > this scum feeder from all apple lists. I don’t think there’s any way to figure o

Gatekeeper bug? [was Re: Codesigning issues]

2015-07-29 Thread Graham Cox
I appear to have solved this problem, but it’s disturbing me because it seems little more than voodoo. I changed the embedded frameworks to use @loader_path instead of @executable_path, and the problem has gone. I verified all of the binaries with otool and the internal dylib loading links wer

Techniques for limiting concurrent downloads via NSURLSession

2015-07-29 Thread Rick Mann
In my application I have to download hundreds to maybe a thousand files for each "thing" that gets downloaded. I tried just kicking off a bunch of download tasks in a loop, but eventually I either get "Too many open files" errors, or I crash (this is on an iPad). I can think of at least one way

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Roland King
> On 30 Jul 2015, at 6:24 am, Charles Srstka wrote: > >> On Jul 29, 2015, at 2:16 PM, Alex Zavatone wrote: >> >> But honestly, the listserv is open and query-able and it looks like the >> spammers have found that out. > > I actually suspect it’s that a spammer has become registered for the l

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Graham Cox
> On 30 Jul 2015, at 9:24 am, Charles Srstka wrote: > >> On Jul 29, 2015, at 2:16 PM, Alex Zavatone wrote: >> >> But honestly, the listserv is open and query-able and it looks like the >> spammers have found that out. > > I actually suspect it’s that a spammer has become registered for the l

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Charles Srstka
> On Jul 29, 2015, at 2:16 PM, Alex Zavatone wrote: > > But honestly, the listserv is open and query-able and it looks like the > spammers have found that out. I actually suspect it’s that a spammer has become registered for the list and is receiving the e-mails (and then sending an auto-reply

Seeking advice for a stream merge type application

2015-07-29 Thread jspayne2
___ 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.co

Re: iOS 8: Can any of you guys think of why an async creation of a UIAlert would generate an exception on a show?

2015-07-29 Thread Alex Zavatone
Who's awesome? Carl's awesome. We had some other intermittent crashes around that area, related to a "use the first answer on SO approach", so I didn't think this would be that simple to isolate. Oddly this is the only place where a UIAlertView crashes and our app is riddled with them since w

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Eric E. Dolecki
Gotta agree. I was shocked when that came in. On Wed, Jul 29, 2015 at 3:18 PM Alex Zavatone wrote: > I guess this is more of a list admin request, but it's rather shocking to > get these emails from "Olivia" coming from replying to an Apple listserve > thread. > > Is there anything we can do abo

Re: iOS 8: Can any of you guys think of why an async creation of a UIAlert would generate an exception on a show?

2015-07-29 Thread Alex Zavatone
Well, it's worth a shot. What I'm seeing indicates some calls to internals that certainly looks like UIAlertController related classes. I was hoping we could continue to get away with UIAlertView because we still have to support iOS 7. I'll switch this method over and see how it fares. Than

Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Alex Zavatone
I guess this is more of a list admin request, but it's rather shocking to get these emails from "Olivia" coming from replying to an Apple listserve thread. Is there anything we can do about the harvesting of our PII (Personally Identifiable Information) from the list so that we don't have the jo

Re: iOS 8: Can any of you guys think of why an async creation of a UIAlert would generate an exception on a show?

2015-07-29 Thread Carl Hoefs
Could this issue be due to whatever reason Apple deprecated UIAlertView in iOS 8? "Important: UIAlertView is deprecated in iOS 8. (Note that UIAlertViewDelegate is also deprecated.) To create and manage alerts in iOS 8 and later, instead use UIAlertController with a preferredStyle of UIAlertCon

Re: iOS 8: Can any of you guys think of why an async creation of a UIAlert would generate an exception on a show?

2015-07-29 Thread Alex Zavatone
Huh. Within the @try block, we can see that the navigationControllerSupportedInterfaceOrientations: is being sent to the UIAlertController. 2015-07-29 14:15:56.967[719:244869] -[SignInViewController displayErrorMessage:] [Line 289] <- *** 2015-07-29 14:15:56.985 [719:244869] -[UIAlertControl

iOS 8: Can any of you guys think of why an async creation of a UIAlert would generate an exception on a show?

2015-07-29 Thread Alex Zavatone
I've got a completion block in an NSURLSessionDataTask that checks if the NSURLResponse statusCode is not 200 and in that case, it places a cell to a method to display a generic error message like so: // If no error occurs, check the HTTP status code. NSInteger HTTPStatusCode = [

Re: iOS 8.4: Converting a URL into a PHAsset

2015-07-29 Thread Carl Hoefs
> On Jul 29, 2015, at 10:26 AM, Ben Kennedy wrote: > > On 29 Jul 2015, at 8:47 am, Carl Hoefs wrote: > >> Ultimately, I'm simply trying to delete the asset: >> [PHAssetChangeRequest deleteAssets:@[asset]]; > > But you don't yet HAVE an asset; you seem to only have a regular file on > disk, i

Re: iOS 8.4: Converting a URL into a PHAsset

2015-07-29 Thread Ben Kennedy
On 29 Jul 2015, at 8:47 am, Carl Hoefs wrote: > Ultimately, I'm simply trying to delete the asset: > [PHAssetChangeRequest deleteAssets:@[asset]]; But you don't yet HAVE an asset; you seem to only have a regular file on disk, in an application's Documents directory. Do you want to do more tha

Re: iOS 8.4: Converting a URL into a PHAsset

2015-07-29 Thread Carl Hoefs
> On Jul 28, 2015, at 11:59 PM, Ben Kennedy wrote: > >> PHAssetChangeRequest *assetRequest = [PHAssetChangeRequest >> creationRequestForAssetFromVideoAtFileURL: self.sourcePlayListItem.url]; >> PHObjectPlaceholder *assetPlaceholder = >> assetRequest.placeholderForCreatedAsset; >> /* treat asse

Re: Best way to have KVC-compliant enum property in Swift 2?

2015-07-29 Thread Rick Mann
> On Jul 28, 2015, at 19:38 , Quincey Morris > wrote: > > I suspect that downloadState will never need to be set via KVC**, or from > Obj-C code, in which case there’s a slightly simpler solution than Charles’ > suggestion. You can have 2 properties, one of which is an enum, and other is > a

Re: iOS 8.4: Converting a URL into a PHAsset

2015-07-29 Thread Carl Hoefs
> On Jul 28, 2015, at 11:59 PM, Ben Kennedy wrote: > > On 28 Jul 2015, at 7:17 pm, Carl Hoefs wrote: >> >> I'm trying to get an NSURL into PHAsset form, but I keep coming up with >> null. PHAsset fetchAssetsWithALAssetURLs: takes an NSArray of NSURLs: "An >> array of NSURL objects, each an

How to zoom with auto layout?

2015-07-29 Thread Gerriet M. Denkmann
10.10.4 I want to zoom (width only) my NSView and want the mid-point of the view to be still in the mid after zooming. The following code works - but only if zooming slowly. How can one avoid the performSelector:afterDelay ? Is there some notification like NSLayoutHasBeenDoneNotification ? I tri

Re: NSPrivateQueueConcurrencyType working outside of performBlock

2015-07-29 Thread Trygve Inda
> > “Setter methods on queue-based managed object contexts are thread-safe. You > can invoke these methods directly on any thread” > > https://developer.apple.com/library/mac/documentation/Cocoa/Reference/CoreData > Framework/Classes/NSManagedObjectContext_Class/index.html > In Apple's example

Re: Unique ID for a Window?

2015-07-29 Thread Dave
> On 29 Jul 2015, at 13:12, Uli Kusterer wrote: > > Note that I'm saying "at a time". There is no guarantee that an application > might not close the window whose number you have, then open a new one, and > get a new window with the same number. It's unlikely to happen, but I don't > think

Change window's rootViewController at runtime

2015-07-29 Thread Diederik Meijer
Did my message below get posted yesterday? I see no replies and did get a weird spam response. Dear list, I am working on an iOS app that uses a UISplitViewController. As per the client’s requirements, a UIViewController should be loaded before the UISplitViewController loads. This “precedi

Re: Unique ID for a Window?

2015-07-29 Thread Uli Kusterer
On 29 Jul 2015, at 13:25, Dave wrote: > Yes I saw this, I wasn’t sure what “Current User Session” meant in this case. > Also if there could be a window owned by one App with the same CGWindowNumber > as another App, IOW, if there could be more than one Window in the Window > Array that has the

Re: Unique ID for a Window?

2015-07-29 Thread Dave
> > From the Window Services Reference: > > kCGWindowNumber > The value for this key is a CFNumberRef > > type (encoded as kCGWindowIDCFNumberType >

Re: Unique ID for a Window?

2015-07-29 Thread Jean-Daniel Dupas
> Le 29 juil. 2015 à 12:25, Dave a écrit : > > Hi, > > For reasons that are too complex to go in to, I need to somehow create a > Unique ID that is valid for the life of a Window. The Window I am trying to > identify is not owned by my App (think Screen Dump, like “Grab”). > > I ran this co

Unique ID for a Window?

2015-07-29 Thread Dave
Hi, For reasons that are too complex to go in to, I need to somehow create a Unique ID that is valid for the life of a Window. The Window I am trying to identify is not owned by my App (think Screen Dump, like “Grab”). I ran this code: CFArrayRef windowList = CGWindowListCopyWindowInfo(kCGWi

Re: iOS 8.4: Converting a URL into a PHAsset

2015-07-29 Thread Ben Kennedy
On 28 Jul 2015, at 7:17 pm, Carl Hoefs wrote: > > I'm trying to get an NSURL into PHAsset form, but I keep coming up with null. > PHAsset fetchAssetsWithALAssetURLs: takes an NSArray of NSURLs: "An array of > NSURL objects, each an asset URL previously retrieved from an ALAsset > object." Appa