Re: problem with rangeOfString debugger warning

2015-07-30 Thread 2551
> On 30 Jul 2015, at 23:19, Jens Alfke wrote: > > You’re confusing -substringWithRange: with -rangeOfSubstring:. The > documentation and warning you cite come from the former, but you’re talking > about the latter. -rangeOfString: invokes, rangeOfString: options:, which invokes rangeOfString

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

2015-07-30 Thread Michael David Crawford
Chris, Your old homey Mike suggests that cocoa-dev could use a little TLC. Mike On Thursday, July 30, 2015, Michael David Crawford wrote: > Internet Crime Complaint Center > >http://www.ic3.gov/complaint/default.aspx > > The CERT Division > > http://www.cert.org/ > > Forum on Risks to

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

2015-07-30 Thread Michael David Crawford
Internet Crime Complaint Center http://www.ic3.gov/complaint/default.aspx The CERT Division http://www.cert.org/ Forum on Risks to the Public in Computers and Related Systems http://catless.ncl.ac.uk/ I once used one-time emails to great effect. Unfortunately my hosting service c

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

2015-07-30 Thread Alex Zavatone
It's not a person called Olivia. It appears to be a group called meetsecret.net. I was just replying to Shane over on the ASOC list since someone mentioned that they are getting Olivia spam too and the very next message I got was from the same group with an other Olivia email. I think that if

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

2015-07-30 Thread Flavio Donadio
Alex, It’s about time the moderators kick this Olivia from this list. Anyone who hangs around with the .net and Android guys should be dangerous. Flavio On 30/07/2015, at 16:00, Alex Zavatone wrote: > On Jul 30, 2015, at 9:45 AM, Shane Stanley wrote: > >> FWIW, it's also happening to on at

Re: Timeouts in NSURLSession

2015-07-30 Thread Rick Mann
> On Jul 30, 2015, at 11:04 , Jens Alfke wrote: > > >> On Jul 29, 2015, at 5:55 PM, Rick Mann wrote: >> >> It seems the only workaround is to make the timeoutIntervalForRequest very >> long, too, which is gross, as a single request may legitimately time out in >> a short amount of time, but

Re: Timeouts in NSURLSession

2015-07-30 Thread Jens Alfke
> On Jul 29, 2015, at 5:55 PM, Rick Mann wrote: > > It seems the only workaround is to make the timeoutIntervalForRequest very > long, too, which is gross, as a single request may legitimately time out in a > short amount of time, but the large set of tasks could take much longer to > run thr

Re: NSManagedObject, NSString property retain vs copy

2015-07-30 Thread Jens Alfke
> On Jul 30, 2015, at 9:03 AM, Trygve Inda wrote: > > It seems Apple is using retain rather than copy for NSString properties in > an NSManagedObject subclass. So, you’re saying that if you store an NSMutableString into a dynamic NSManagedObject property, and then mutate the original string, t

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

2015-07-30 Thread Alex Zavatone
On Jul 30, 2015, at 9:45 AM, Shane Stanley wrote: > On 30 Jul 2015, at 9:36 pm, Alex Zavatone wrote: >> >> Including me, I know of three people who have gotten these. > > FWIW, it's also happening to on at least one other Apple mailing list. Olivia > seems to get around. Which other ones? I

debugging UIWebView and errors

2015-07-30 Thread Steve Christensen
Does anybody know if there's a way to get WebKit to dump errors to the console? The default behavior appears to be to fail silently. Background: I'm working on an app that deploys to iOS 7 and later. It contains a UIWebView whose content is build dynamically and contains, among other things, a

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-30 Thread Alex Zavatone
I've got the header info form two of the spam emails from the hijacked threads As far as I can tell, it's being sent by meetsecret.net X-Virus-Scanned: Debian amavisd-new at ns1.meetsecret.net If anyone wants me to send them the header info or the complete emails, just let me know. Setting up

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

2015-07-30 Thread Alex Zavatone
On Jul 30, 2015, at 2:40 AM, Philip Ershler wrote: > > >> 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:

Re: problem with rangeOfString debugger warning

2015-07-30 Thread Jens Alfke
> On Jul 30, 2015, at 1:11 AM, 2551 <2551p...@gmail.com> wrote: > > In the docs under ‘Special Considerations’ it says "This method detects all > invalid ranges (including those with negative lengths). For applications > linked against OS X v10.6 and later, this error causes an exception; for

Re: NSManagedObject, NSString property retain vs copy

2015-07-30 Thread Fritz Anderson
On 30 Jul 2015, at 11:03 AM, Trygve Inda wrote: > It seems Apple is using retain rather than copy for NSString properties in > an NSManagedObject subclass. > > I was always under the impression that copy should be used for NSString, so > why the retain?? For an immutable string, -copy is implem

NSManagedObject, NSString property retain vs copy

2015-07-30 Thread Trygve Inda
It seems Apple is using retain rather than copy for NSString properties in an NSManagedObject subclass. I was always under the impression that copy should be used for NSString, so why the retain?? Trygve ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

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

2015-07-30 Thread Dave
Another thing to watch out for is giving “real” file paths in the body of emails to the list - e.g. cut and paste from log etc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

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

2015-07-30 Thread Dave
> On 30 Jul 2015, at 14:57, 2551 <2551p...@gmail.com> wrote: > > I’m on both of the affected lists, but so far have not been treated to > Olivia’s favour (meanwhile my inbox is bulging with mail complaining about > her, and I apologise in advance to contributing to that count, effectively > sp

Re: WKWebView Allow file selection button to select directories

2015-07-30 Thread Tim Fletcher
Hi Uli, I could definitively have been clearer… The button is indeed displayed, but clicking has no effect. I would like the user to be able to open up a “Chose file” dialog that is only enabled for directories. Can this be done somewhere in WKPreferences or WKWebViewConfiguration ? However,

Re: WKWebView Allow file selection button to select directories

2015-07-30 Thread Uli Kusterer
On 30 Jul 2015, at 15:27, Tim Fletcher wrote: > In a WKWebView I am rendering the following button > > > > However this is not working. I have downloaded the latest version of Webkit. Define "this is not working". No "Choose" button shows up? You can't select a folder in the open panel tha

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

2015-07-30 Thread 2551
I’m on both of the affected lists, but so far have not been treated to Olivia’s favour (meanwhile my inbox is bulging with mail complaining about her, and I apologise in advance to contributing to that count, effectively spamming myself… :(. > On 30 Jul 2015, at 20:45, Shane Stanley wrote: >

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

2015-07-30 Thread Shane Stanley
On 30 Jul 2015, at 9:36 pm, Alex Zavatone wrote: > > Including me, I know of three people who have gotten these. FWIW, it's also happening to on at least one other Apple mailing list. Olivia seems to get around. -- Shane Stanley ___ Cocoa-dev m

WKWebView Allow file selection button to select directories

2015-07-30 Thread Tim Fletcher
Hi All, In a WKWebView I am rendering the following button However this is not working. I have downloaded the latest version of Webkit. Could someone point me to a documentation page explaining how I might go about this? Thanks for your time, Tim

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

2015-07-30 Thread Dave
I seem to remember one trick back in the old days, was to munge up your email address some thing like this nodaves...@looktowindward.com or some such and I seem to remember I had one dedicated email address for lists (or at least the Apple Lists). Not sure if that would work on this problem, dep

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

2015-07-30 Thread Bill Cheeseman
People have been asking for this change for at least 15 years, and it has been refused just as many times. As a born skeptic, I doubt there is any point in asking again now. -- Bill Cheeseman - wjcheese...@comcast.net > On Jul 30, 2015, at 8:24 AM, Uli Kusterer > wrote: > > Since you have

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

2015-07-30 Thread Uli Kusterer
On 30 Jul 2015, at 13:57, Dave wrote: > The easy answer is for the Apple lists NOT to send email addresses of the > poster(s) and to direct all replies to the list itself. When I hit reply, it > set TO: to the original sender, then CC:The List and others in the thread, > this is what the spamme

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

2015-07-30 Thread Dave
The easy answer is for the Apple lists NOT to send email addresses of the poster(s) and to direct all replies to the list itself. When I hit reply, it set TO: to the original sender, then CC:The List and others in the thread, this is what the spammer is picking up. Then any spam would go to the

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

2015-07-30 Thread Alex Zavatone
Including me, I know of three people who have gotten these. I'll see if I still have the spam in one of my email boxes. On Jul 30, 2015, at 2:40 AM, Philip Ershler wrote: > > >> On Jul 29, 2015, at 11:57 PM, Carl Hoefs >> wrote: >> >> On Jul 29, 2015, at 10:30 PM, Joar Wingfors wrote

Re: problem with rangeOfString debugger warning

2015-07-30 Thread 2551
Cancel that question. Found the error between the chair and keyboard (someString was depending on another function which itself was returning null and which I’d forgotten to bullet-proof). Apologies for the noise. Best Phil > On 30 Jul 2015, at 15:16, 2551 <2551p...@gmail.com> wrote: > >

Re: Setting NSOutlineView Delegate When a Subview

2015-07-30 Thread Thomas Wetmore
Note to self: Never ask Cocoa dev questions at 4:00 am. Sorry for wasting bandwidth. Problem was simply because I stupidly added delegate and dataSource as properties to the custom NSView. The compiler was telling me exactly what was wrong. Tom Wetmore > On Jul 30, 2015, at 4:22 AM, Thomas Wet

Setting NSOutlineView Delegate When a Subview

2015-07-30 Thread Thomas Wetmore
I have a custom NSView that has an NSOutlineView as a subview. Instances are created and used programatically. The code is implemented in Swift 1.2. In order to set the delegate and data source for the NSOutlineView I assumed I should just add the following methods to the custom NSView: … var o

Re: problem with rangeOfString debugger warning

2015-07-30 Thread 2551
> On 30 Jul 2015, at 15:11, 2551 <2551p...@gmail.com> wrote: > > NSRange range = [someString rangeOfString “cost”]; > Just to head off any potential red herrings, that missing “@“ typo in the pseudocode is not in my actual code. Best Phil ___ Co

problem with rangeOfString debugger warning

2015-07-30 Thread 2551
I commonly use code like this to test if a string contains a substring NSString *someString = @“This thing has an item.price and a discount.price”; NSRange range = [someString rangeOfString “cost”]; if (range.location !=NSNotFound) { //do something } else { //don’t do it } In

Crash in printing

2015-07-30 Thread John Brownie
One of my users has reported a crash in printing, and I don't really know what could be triggering it. This is the error: Exception Type:EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00f8 VM Regions Near 0xf8: --> __TEXT 00