Re: Regarding these Olivia messages. Can we do something about the list security?
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 sstan...@myriad-com.com.au wrote: On 30 Jul 2015, at 9:36 pm, Alex Zavatone z...@mac.com 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 sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ 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.com/mailman/options/cocoa-dev/sqwarqdev%40icloud.com This email sent to sqwarq...@icloud.com ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
On 30 Jul 2015, at 13:57, Dave d...@looktowindward.com 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 spammer is picking up. Then any spam would go to the list and it could dealt with there once, not by all that are affected. Since you have to be subscribed to the list to post, the likelihood would even be that either the message would either be rejected right away, or there would be a sender address subscribed to the list that could be unsubscribed to cause future bounces. That sounds like an actionable approach. List admins, is this a possible setup for whatever list management software you're using? Cheers, -- Uli Kusterer The Witnesses of TeachtText are everywhere... ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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, depends on whether the auto reply thing is smart. Actually thinking about it more, it could be an infected machine of a bona-fibe member. Dave On 30 Jul 2015, at 13:29, Bill Cheeseman wjcheese...@gmail.com wrote: 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 witness.of.teacht...@gmx.net wrote: Since you have to be subscribed to the list to post, the likelihood would even be that either the message would either be rejected right away, or there would be a sender address subscribed to the list that could be unsubscribed to cause future bounces. That sounds like an actionable approach. List admins, is this a possible setup for whatever list management software you're using? ___ 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.com/mailman/options/cocoa-dev/dave%40looktowindward.com This email sent to d...@looktowindward.com ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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 witness.of.teacht...@gmx.net wrote: Since you have to be subscribed to the list to post, the likelihood would even be that either the message would either be rejected right away, or there would be a sender address subscribed to the list that could be unsubscribed to cause future bounces. That sounds like an actionable approach. List admins, is this a possible setup for whatever list management software you're using? ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WKWebView Allow file selection button to select directories
On 30 Jul 2015, at 15:27, Tim Fletcher timothy.m.fletc...@gmail.com wrote: In a WKWebView I am rendering the following button input type=file webkitdirectory directory multiple 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 that comes up? You can't drag a folder onto the button? When I try this in Safari, I get a button, and I can drag a folder on it, but the Choose button is disabled when I'm inside a folder. So to me it looks like a bug with a workaround (just drag-and-drop onto the button instead). Maybe you can theme it so it is just a drop here graphic instead of a button? Cheers, -- Uli Kusterer The Witnesses of TeachtText are everywhere... ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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 newsli...@autonomy.caltech.edu wrote: On Jul 29, 2015, at 10:30 PM, Joar Wingfors j...@joar.com wrote: On 29 Jul 2015, at 16:52, Jens Alfke j...@mooseyard.com wrote: On Jul 29, 2015, at 4:32 PM, Roland King r...@rols.org 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 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 mailto:scum_fee...@spamsalot.biz”. Right. If someone can come up with a concrete approach for how to address this issue I can make sure that it gets looked at. At the moment I’m just not clear on how that would be accomplished. 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 Nor me Phil ___ 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.com/mailman/options/cocoa-dev/ershler%40cvrti.utah.edu This email sent to ersh...@cvrti.utah.edu ___ 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.com/mailman/options/cocoa-dev/zav%40mac.com This email sent to z...@mac.com ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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 list and it could dealt with there once, not by all that are affected. Cheers Dave ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
On 30 Jul 2015, at 9:36 pm, Alex Zavatone z...@mac.com 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 sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WKWebView Allow file selection button to select directories
Hi All, In a WKWebView I am rendering the following button input type=file webkitdirectory directory multiple 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 ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WKWebView Allow file selection button to select directories
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, the idea of just dropping the folder on a button, or drop zone of some sort is indeed a good workaround. Cheers, Tim On 30 Jul 2015, at 15:01, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 30 Jul 2015, at 15:27, Tim Fletcher timothy.m.fletc...@gmail.com wrote: In a WKWebView I am rendering the following button input type=file webkitdirectory directory multiple 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 that comes up? You can't drag a folder onto the button? When I try this in Safari, I get a button, and I can drag a folder on it, but the Choose button is disabled when I'm inside a folder. So to me it looks like a bug with a workaround (just drag-and-drop onto the button instead). Maybe you can theme it so it is just a drop here graphic instead of a button? Cheers, -- Uli Kusterer The Witnesses of TeachtText are everywhere... ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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 list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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 spamming myself… :(. Your ISP is probably catching it. I think mine is now as not got any for a while. ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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 we set up a filter to scan the email headers for *.meetsecret.net and route those to the trash, we should be free of this for at least a while. Here's part of the email header from one of those Olivia emails. Received: from [172.245.96.12] (unknown [172.245.96.12]) (Authenticated sender: oli...@meetsecret.net) by ns1.meetsecret.net (Postfix) … X-Virus-Scanned: Debian amavisd-new at ns1.meetsecret.net Hope this helps Cheers, Alex Zavatone On Jul 30, 2015, at 3:22 PM, Flavio Donadio wrote: 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 least one other Apple mailing list. Olivia seems to get around. Which other ones? I haven't seen them on ASOC or the Applescript ones (which I am aware you are subbed to). Honestly, I had my hopes up, but now that I know that Olivia is cheating on this mailing list with other Apple mailing lists, I'm about to lose faith in her. I wouldn't be surprised if she's all over the .net and Android guys too. Spammers aren't what the used to be, I tell ya. Sigh. ___ 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.com/mailman/options/cocoa-dev/zav%40mac.com This email sent to z...@mac.com ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
Chris, Your old homey Mike suggests that cocoa-dev could use a little TLC. Mike On Thursday, July 30, 2015, Michael David Crawford mdcrawf...@gmail.com wrote: 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 configured my mail to accept any username, commonly but incorrectly known as a postmaster account. I once received 400 MB of spam per day! I strongly recommend one-time emails but dont make them obvious. Use common given names, but not your own name. Onfigure your mail server to accept each one you actually use. When the spam gets you down, unsubscribe from the list, configure a new one-time email, resubscribe. Keep the now-unused mail user for a while but mark everything as spam. When you grow weary of doing so delete the username. Gmail does work but it is impolite to draw so heavily on a free as in beer resource. If you like Gmail, Google offers a paid service that will mailhost your own domain. Javascript email obfuscation is effective because the bots dont even try to crack it: http://www.warplife.com/moat/alligators.js For extra credit, design your own custom software. If you desire only the very best: Set up an apparently legitimate site with some innocuous content that appears to belong to a real business. Provide a sitemap: http://www.sitemaps.org/ Put your sitemap's URL in your robots.txt: http://www.robotstxt.org/robotstxt.html supply a permissive one: User-agent: * Disallow: Sitemap: http://www.example.com/urllist.txt.gz ... or... Sitemap-index: http://www.example.com/sitemap-index.xml.gz ... the sitemap index points to urllist.txt.gz but contains a timestamp that reduces everyone's load. Plaster that site with lots of apparently-legitimate email addies. Submit your homepage URL: Painless Search Engine Site Submission http://www.warplife.com/tips/webmaster/site-submission.html ... wait until the spam gets REALLY out of control then install a Teergrube: http://www.catb.org/jargon/html/T/teergrube.html https://en.m.wikipedia.org/wiki/Tarpit_(networking) Onw simple way is that when a spammer tries to deliver mail to your smtp server you start to cooperate but then pause until just before the timeout, then issue a continuation character: - .. then pause again. But do _eventually_ accept the mail, that way the spammer wont receive a bounce. A few hours after each spam arrives, use cURL or wget to fetch each of its images. That's how spammers know that you like to read spam. Also click some of their links. The Coup d' Gras is to drop this domain's emails into a bunch of newsletter subscription forms. I'll Send You My Bill In The Mail. Mike mdcrawf...@gmail.com javascript:_e(%7B%7D,'cvml','mdcrawf...@gmail.com'); -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com javascript:_e(%7B%7D,'cvml','mdcrawf...@gmail.com'); http://www.warplife.com/mdc/ Every Deity Hath the Insight to Foretell the Future Yet G-d Almighty Himself Possesseth Not the Power to Undo the Past. -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Every Deity Hath the Insight to Foretell the Future Yet G-d Almighty Himself Possesseth Not the Power to Undo the Past. ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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 configured my mail to accept any username, commonly but incorrectly known as a postmaster account. I once received 400 MB of spam per day! I strongly recommend one-time emails but dont make them obvious. Use common given names, but not your own name. Onfigure your mail server to accept each one you actually use. When the spam gets you down, unsubscribe from the list, configure a new one-time email, resubscribe. Keep the now-unused mail user for a while but mark everything as spam. When you grow weary of doing so delete the username. Gmail does work but it is impolite to draw so heavily on a free as in beer resource. If you like Gmail, Google offers a paid service that will mailhost your own domain. Javascript email obfuscation is effective because the bots dont even try to crack it: http://www.warplife.com/moat/alligators.js For extra credit, design your own custom software. If you desire only the very best: Set up an apparently legitimate site with some innocuous content that appears to belong to a real business. Provide a sitemap: http://www.sitemaps.org/ Put your sitemap's URL in your robots.txt: http://www.robotstxt.org/robotstxt.html supply a permissive one: User-agent: * Disallow: Sitemap: http://www.example.com/urllist.txt.gz ... or... Sitemap-index: http://www.example.com/sitemap-index.xml.gz ... the sitemap index points to urllist.txt.gz but contains a timestamp that reduces everyone's load. Plaster that site with lots of apparently-legitimate email addies. Submit your homepage URL: Painless Search Engine Site Submission http://www.warplife.com/tips/webmaster/site-submission.html ... wait until the spam gets REALLY out of control then install a Teergrube: http://www.catb.org/jargon/html/T/teergrube.html https://en.m.wikipedia.org/wiki/Tarpit_(networking) Onw simple way is that when a spammer tries to deliver mail to your smtp server you start to cooperate but then pause until just before the timeout, then issue a continuation character: - .. then pause again. But do _eventually_ accept the mail, that way the spammer wont receive a bounce. A few hours after each spam arrives, use cURL or wget to fetch each of its images. That's how spammers know that you like to read spam. Also click some of their links. The Coup d' Gras is to drop this domain's emails into a bunch of newsletter subscription forms. I'll Send You My Bill In The Mail. Mike mdcrawf...@gmail.com -- Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/ Every Deity Hath the Insight to Foretell the Future Yet G-d Almighty Himself Possesseth Not the Power to Undo the Past. ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: problem with rangeOfString debugger warning
On 30 Jul 2015, at 23:19, Jens Alfke j...@mooseyard.com 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: options: range:. The quote comes from there. Thanks for the other points; I’d got there myself after a night’s rest, but the NSAssert’s a nice touch I’ll remember for another time. Best Phil ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
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 least one other Apple mailing list. Olivia seems to get around. Which other ones? I haven't seen them on ASOC or the Applescript ones (which I am aware you are subbed to). Honestly, I had my hopes up, but now that I know that Olivia is cheating on this mailing list with other Apple mailing lists, I'm about to lose faith in her. I wouldn't be surprised if she's all over the .net and Android guys too. Spammers aren't what the used to be, I tell ya. Sigh. ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
On Jul 29, 2015, at 11:57 PM, Carl Hoefs newsli...@autonomy.caltech.edu wrote: On Jul 29, 2015, at 10:30 PM, Joar Wingfors j...@joar.com wrote: On 29 Jul 2015, at 16:52, Jens Alfke j...@mooseyard.com wrote: On Jul 29, 2015, at 4:32 PM, Roland King r...@rols.org 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 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 mailto:scum_fee...@spamsalot.biz”. Right. If someone can come up with a concrete approach for how to address this issue I can make sure that it gets looked at. At the moment I’m just not clear on how that would be accomplished. 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 Nor me Phil ___ 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.com/mailman/options/cocoa-dev/ershler%40cvrti.utah.edu This email sent to ersh...@cvrti.utah.edu ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
problem with rangeOfString debugger warning
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 one case where the string isn’t found, I’m getting a warning (Xcode 6.4, OS X 10.10.4) stating that *** -[__NSCFString substringWithRange:]: Range {9223372036854775808, 9223372036854775830} out of bounds; string length 48. This will become an exception for apps linked after 10.10 and iOS 8. Warning shown once per app execution. When I look in the debugger, I see that ‘rangeOfString’ has not returned {NSNotFound, 0} as promised in the docs, but huge numbers for location and length: range NSRange location=4295047576, length=140734799794576 leading to the ‘out of bounds warning. 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 applications linked against earlier releases, this error causes a warning, which is displayed just once per application execution.” My questions are: what causes this to be an “invalid range” rather than an NSNotFound? And: How do I avoid it when searching for a potentially non-existent string? Any guidance much appreciated. Best Phil ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Setting NSOutlineView Delegate When a Subview
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 outlineView: NSOutlineView! var dataSource: NSOutlineViewDataSource? var delegate: NSOutlineViewDelegate? … func setDelegate (delegate: NSOutlineViewDelegate?) { outlineView.setDelegate(delegate) } func setDataSource (dataSource: NSOutlineViewDataSource?) { outlineView.setDataSource(dataSource) } … However, when I do I get a similar compiler error for each method. For the setDelegate method I get: “Method ‘setDelegate’ with Objective-C selector 'setDelegate:' conflicts with setter for 'delegate' with the same Objective-C selector. I changed my method names to setOutlineViewDelegate and setOutlineViewDataSource to get around the compiler, but I don’t understand why I have to use the workaround, which feels icky to me. Can anyone provide insight? Thanks. Xcode 6.4 on Mac OS X 10.10.4. Tom Wetmore, COF ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting NSOutlineView Delegate When a Subview
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 Wetmore t...@verizon.net wrote: 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 outlineView: NSOutlineView! var dataSource: NSOutlineViewDataSource? var delegate: NSOutlineViewDelegate? … func setDelegate (delegate: NSOutlineViewDelegate?) { outlineView.setDelegate(delegate) } func setDataSource (dataSource: NSOutlineViewDataSource?) { outlineView.setDataSource(dataSource) } … However, when I do I get a similar compiler error for each method. For the setDelegate method I get: “Method ‘setDelegate’ with Objective-C selector 'setDelegate:' conflicts with setter for 'delegate' with the same Objective-C selector. I changed my method names to setOutlineViewDelegate and setOutlineViewDataSource to get around the compiler, but I don’t understand why I have to use the workaround, which feels icky to me. Can anyone provide insight? Thanks. Xcode 6.4 on Mac OS X 10.10.4. Tom Wetmore, COF ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Crash in printing
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 0001082eb000-000108524000 [ 2276K] r-x/rwx SM=COW /path/to/binary Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.print.framework.PrintCore0x00010f8141f5 PJCSessionHasApplicationSetPrinter + 4 1 com.apple.print.framework.Print.Private0x00012332648a 0x12331 + 91274 2 com.apple.AppKit 0x000109346857 -[NSWindowController _windowDidLoad] + 586 3 com.apple.AppKit 0x00010932eb83 -[NSWindowController window] + 110 4 com.apple.AppKit 0x000109447e9d -[NSPrintPanel beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:] + 533 5 com.apple.AppKit 0x000109447970 __91-[NSConcretePrintOperation runOperationModalForWindow:delegate:didRunSelector:contextInfo:]_block_invoke388 + 149 6 com.apple.AppKit 0x000109447861 __91-[NSConcretePrintOperation runOperationModalForWindow:delegate:didRunSelector:contextInfo:]_block_invoke + 55 7 com.apple.AppKit 0x0001094467cb -[NSConcretePrintOperation runOperationModalForWindow:delegate:didRunSelector:contextInfo:] + 621 8 My.app.signature 0x0001083d00a8 -[MyWindowController printDocument:] + 3553 9 com.apple.AppKit 0x0001094ea0b1 -[NSToolbarButton sendAction:to:] + 75 10 com.apple.AppKit 0x0001093dae5a -[NSToolbarItemViewer mouseDown:] + 4981 11 com.apple.AppKit 0x00010994b2dc -[NSWindow _reallySendEvent:isDelayedEvent:] + 14125 12 com.apple.AppKit 0x0001092dac86 -[NSWindow sendEvent:] + 470 13 com.apple.AppKit 0x0001092d7212 -[NSApplication sendEvent:] + 2504 14 com.apple.AppKit 0x000109200b68 -[NSApplication run] + 711 15 com.apple.AppKit 0x00010917d244 NSApplicationMain + 1832 16 libdyld.dylib 0x00010c0945c9 start + 1 My best guess is that I'm passing something wrong, but, not being able to reproduce the crash myself, I can't tell what to look for. Any suggestions? John -- John Brownie, john_brow...@sil.org or j.brow...@sil.org.pg Summer Institute of Linguistics | Mussau-Emira language, Mussau Is. Ukarumpa, Eastern Highlands Province | New Ireland Province Papua New Guinea | Papua New Guinea ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: problem with rangeOfString debugger warning
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 ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSManagedObject, NSString property retain vs copy
On 30 Jul 2015, at 11:03 AM, Trygve Inda cocoa...@xericdesign.com 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 implemented as a -retain. -copy is a guard against the receiver’s relying on the unchanging contents of a string whose contents can be changed. If the contents cannot in fact be changed, there’s no point in allocating new memory and copying the bytes into it. It’s an implementation detail; what makes you believe it makes a difference? — F ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Timeouts in NSURLSession
On Jul 30, 2015, at 11:04 , Jens Alfke j...@mooseyard.com wrote: On Jul 29, 2015, at 5:55 PM, Rick Mann rm...@latencyzero.com 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 through. I’ve recently seen the argument made that most network requests should _never_ time out: it’s better to let the user decide when something’s taking too long. In some cases they may be prepared to wait ten minutes for a server to respond while downloading some crucial file, while in other cases they’ll give up in ten seconds. Just give the user something like a Stop button to cancel the operation. The exception would be where an operation is completely invisible to the user, but even in that case it might be better to put up an alert like “The automatic backup is stalled because the server isn’t responding. Do you want to keep trying or give up?” I tend to agree, although this is from the perspective of the user. Perhaps a network operation can time out, and the code can silently retry it. Maybe no timeouts and timeout and retry are equivalent. I still think the current NSURLSession behavior isn't correct. Perhaps it needs a third timeout value representing what I think it should do. Or a fourth for all session tasks. But the current behavior seems to be the least useful of the bunch. -- Rick Mann rm...@latencyzero.com ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
On Jul 30, 2015, at 12:57 AM, Carl Hoefs newsli...@autonomy.caltech.edu 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 they been sending them to you, Carl? How do I know *you’re* not the one behind all this, huh? You hear that, everybody? *He’s* the one! He’s the spammer! Get him! RRRGHHH!!! (excerpt from: “The Spammers Are Due on Maple Street”) Charles ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSManagedObject, NSString property retain vs copy
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.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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: problem with rangeOfString debugger warning
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 applications linked against earlier releases, this error causes a warning, which is displayed just once per application execution.” My questions are: what causes this to be an “invalid range” rather than an NSNotFound? And: How do I avoid it when searching for a potentially non-existent string? You’re confusing -substringWithRange: with -rangeOfSubstring:. The documentation and warning you cite come from the former, but you’re talking about the latter. As the docs promise, -rangeOfSubstring: will either return a valid range, or {NSNotFound, 0}. What’s probably happening to you is that you called it on a nil string. This means the method isn’t called at all. In most cases messaging nil will return a value of 0 or 0.0 or nil, but struct returns are an exception — the struct will be uninitialized on return, i.e. garbage. (This happens because the Obj-C runtime doesn’t know how big the returned struct is, so it can’t safely fill it with zeros.) Put an NSAssert(someString!=nil) before the -rangeOfString: call and it should pinpoint when the problem occurs. —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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
On Jul 30, 2015, at 2:40 AM, Philip Ershler wrote: On Jul 29, 2015, at 11:57 PM, Carl Hoefs newsli...@autonomy.caltech.edu wrote: On Jul 29, 2015, at 10:30 PM, Joar Wingfors j...@joar.com wrote: On 29 Jul 2015, at 16:52, Jens Alfke j...@mooseyard.com wrote: On Jul 29, 2015, at 4:32 PM, Roland King r...@rols.org 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 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 mailto:scum_fee...@spamsalot.biz”. Right. If someone can come up with a concrete approach for how to address this issue I can make sure that it gets looked at. At the moment I’m just not clear on how that would be accomplished. 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 Nor me Phil Selective email address validation to get the most return on each spam message? I do know that on one older Mac I have, I bounced the email right back and then ended up with another email asking for my credit card. ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iOS 8: Can any of you guys think of why an async creation of a UIAlert would generate an exception on a show?
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 an individual filter for that domain in the header is certainly possible, but for everyone to do it, it's a waste of our precious time. On Jul 29, 2015, at 2:40 PM, Alex Zavatone wrote: 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] -[UIAlertController navigationControllerSupportedInterfaceOrientations:]: unrecognized selector sent to instance 0x156e29f0 0x156e29f0 is _alertController inside the instance of alert. Yes, the view controller class this is happening in is conforming to UINavigationControllerDelegate and I have set the self.navigationController.delegate to self. What I can't wrap my head around is why or how it is possible for something like this to happen. On Jul 29, 2015, at 2:08 PM, Alex Zavatone wrote: 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 = [(NSHTTPURLResponse *)response statusCode]; // If it's other than 200, then show it on the console. if (HTTPStatusCode != 200) { DLog(@HTTP status code = %ld, (long)HTTPStatusCode); NSString *errorMessage = [NSHTTPURLResponse localizedStringForStatusCode:HTTPStatusCode]; DLog(@HTTP error message is: %@, errorMessage); // display error message; [self displayErrorMessage:errorMessage]; return; } And in displayErrorMessage is will asks GDC to dispatch an async call to display the message on the main thread. // Error messages - (void)displayErrorMessage:(NSString *)errorMessage { DLog(@- ***); // handle on the main thread dispatch_async(dispatch_get_main_queue(), ^{ NSString *internalErrorMessage = @An error occurred. Please try again.; UIAlertView *alert = [[UIAlertView alloc] initWithTitle: nil message: internalErrorMessage delegate: nil cancelButtonTitle: @OK otherButtonTitles: nil, nil]; if (alert) { [alert show]; } else { DLog(@For some reason, the alert instance isn't ready for a show.); } }); } What's happening intermittently when I'm causing the server call to time out is that I'll get a bad access on the [alert show]. I've spent all morning trying to narrow this down, to find out where the bad access is and why this is occurring. Sometimes in the stack trace, I'll see 3 or 4 calls to display the alert in different threads. Sometimes, I see that the [alert show] exception is being caused by navigationControllersupportedInderfaceOrientations: being sent to alert and the instruction pointer is on the [alert show line]. I've included a screenshot of thread 1 to see if any of this makes any sense to anyone else. Thanks in advance if you're able to spend some time to help me out on this one. Adding an @try block around the [alert show] and retesting now. Stack trace screenshot below: http://i.imgur.com/KfILPLE.png - Alex Zavaotne ___ 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.com/mailman/options/cocoa-dev/zav%40mac.com This email sent to z...@mac.com ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
debugging UIWebView and audio errors
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 number of audio tags that the user can tap on to play local or remote audio files. I'm finding that local audio files play just fine, but remote files don't. If I put the HTML into a file and open it in Safari or Chrome then both audio items load and play just fine so it isn't an issue of not being able to locate the remote file, or that the remote file contains bad data. I created a simplified test that uses the same audio file, just that one copy is on the server, so that I can be working with the same audio data. On iOS 7 the control for the remote file initially shows the play button but then shortly thereafter changes to display Cannot play audio file.; on iOS 8 it just displays Loading. While I was at it, I installed Javascript event listeners on both of the audio tags so I could watch state changes. The local file fires loadstart-progress-suspend-loadedmetadata, and the remote one only loadstart and Loading remains visible in the control so it appears that the loading process is getting hung up or aborted for some reason. Thoughts? ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSManagedObject, NSString property retain vs copy
On Jul 30, 2015, at 9:03 AM, Trygve Inda cocoa...@xericdesign.com 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, the property’s value changes too? Do you have a snippet that exhibits this? —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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Regarding these Olivia messages. Can we do something about the list security?
On Jul 30, 2015, at 9:45 AM, Shane Stanley wrote: On 30 Jul 2015, at 9:36 pm, Alex Zavatone z...@mac.com 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 haven't seen them on ASOC or the Applescript ones (which I am aware you are subbed to). Honestly, I had my hopes up, but now that I know that Olivia is cheating on this mailing list with other Apple mailing lists, I'm about to lose faith in her. I wouldn't be surprised if she's all over the .net and Android guys too. Spammers aren't what the used to be, I tell ya. Sigh. ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Timeouts in NSURLSession
On Jul 29, 2015, at 5:55 PM, Rick Mann rm...@latencyzero.com 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 through. I’ve recently seen the argument made that most network requests should _never_ time out: it’s better to let the user decide when something’s taking too long. In some cases they may be prepared to wait ten minutes for a server to respond while downloading some crucial file, while in other cases they’ll give up in ten seconds. Just give the user something like a Stop button to cancel the operation. The exception would be where an operation is completely invisible to the user, but even in that case it might be better to put up an alert like “The automatic backup is stalled because the server isn’t responding. Do you want to keep trying or give up?” —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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: problem with rangeOfString debugger warning
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: 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 ___ 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.com/mailman/options/cocoa-dev/sqwarqdev%40icloud.com This email sent to sqwarq...@icloud.com ___ 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.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com