Search results for

eskimo

35,011 results found

Post

Replies

Boosts

Views

Activity

Reply to NSURL xcode 6.4
I have the same problem with -[NSXMLParser initWithContentsOfURL] after updating to Xcode 7.0b5 and iOS 9. The parse method always returns false.Following eskimo's advice (well, almost) I tried -[NSData initWithContentsOfURL] and that doesn't work either; returns nil.After a bit of fiddling I've managed to get it to spurt out the following error:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’15
Reply to When are background refreshes allowed to execute?
So now my question is: can apps be launched automatically in the background for which the “has the user launched this app” flag is set to false?Yes. There’s a long history to this issue. The original plan was for apps to never launch automatically when that flag was clear. In iOS 4 through 6 that was the plan but there were various bugs that allowed this to happen. In iOS 7.0, IIRC, we got everything consistent, so once you terminated an app from the multitasking UI it would never launch again until you manually launched it. In later versions of iOS 7.x we backpedalled on that a bit, although I don’t recall the exact details.What are the exact conditions in which an app can and will be launched in the background?The exact conditions are not documented because they are not considered API.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Reply to Dispatch Source deallocated
I wonder if there's another way to have a timer that runs my method in a separate thread.There are ways to do that but it’s hard to say whether that’s a good idea or not because you haven’t really discussed the requirements of the DispatchTimer class, you’ve only talked about its internals.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Aug ’15
Reply to Understanding “includesPeerToPeer” property of NSNetservice
There are two issues here:Performance can drop when you enable Bluetooth for two reasons:It’s possible for the connection to be made over Bluetooth, which is slower than Wi-Fi, obviously.Bluetooth and Wi-Fi share the same antenna, so enabling Bluetooth can impact on Wi-Fi performance even if you’re connected over Wi-Fi.Turning on includesPeerToPeer also enables peer-to-peer Wi-Fi. That can impact on performance because of the way in which peer-to-peer Wi-Fi is implemented on our current hardware.There’s not much you can do about this at the NSNetService layer. With the lower-level Bonjour API, <dns_sd.h>, it’s possible to control exactly which peer-to-peer links are used, but for NSNetService it’s either all or nothing. Regardless of what you do with the above information, it’s important that you stop any ongoing Bonjour operations once you no longer need them. For example, if your game is connected and running, it’s critical that you stop any ongoing Bonjour browse and resolve operations, lest they adv
Aug ’15
Reply to iOS 9 : SecItemCopyMatching returns successful status code but key is nil
I'm also seeing this. Code which has worked for a long time suddenly stopped working wiht iOS 9, with no other symptoms than that SecItemCopyMatching suddenly returns nil. I have checked my key with dumpasn1.I’m happy to take a look but you’ll need to post the relevant code snippets and a hex dump of a test key that reproduces the problem.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Privacy & Security SubTopic: General Tags:
Aug ’15
Reply to how to set socket event mode in kext
I do not, alas, understand your question. Do you know how to do this in user space? If so, please describe how you’re doing it there and I may be able to translate.If not, you’ll have to run through some concrete examples of what you’re trying to achieve.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to Access routing table on ios
Is there a way to access routing table on iOS9?Accessing the routing table on iOS is much like accessing the ARP table, something I’ve discussed recently on another thread.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Sep ’15
Reply to SMBMountShareEx mount permissions
I am trying to mount a share programatically using SmbClient.framework.Last I checked SMBClient framework wasn’t public API.What’s your high-level goal here? If you’re just trying to mount a file server in the standard way, you have two other options:The older API (FSMountServerVolumeAsync and so on) in <CarbonCore/Files.h>.Startin with 10.8, you can use NetFSMountURLAsync from <NetFS/NetFS.h>.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Sep ’15
Reply to Understanding “includesPeerToPeer” property of NSNetservice
Can you help me in understanding the differences between peer to peer Wi-Fi connection and normal Wi-Fi connection between the devices implemented using NSNetService?Peer-to-peer Wi-Fi works even if the devices are not on the same infrastructure Wi-Fi network; they just have to be in range of each other.Without includesPeerToPeer, NSNetService will only work if both devices are associated to the same Wi-Fi network within the same multicast domain (that is, device B can see multicasts sent by device A). Is it good practise to ask the user to turn OFF Bluetooth before starting Wi-Fi multiplayer game?I can’t really answer that.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Sep ’15
Reply to Why does NSURLSession in iOS9 return -9802?
Is it possible that NSIncludeSubdomains is broken?AFAIK this works, although you do have to spell it correctly (-:The documented value is NSIncludesSubdomains whereas you’re using NSIncludeSubdomains (you need an “s” at the end of “includes”). Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Sep ’15
Reply to How do I get a DER public key into a SecKeyRef
Did you mean to link to https://devforums.apple.com/message/944466#944466?No. Sorry. I meant <https://devforums.apple.com/message/950088#950088>, but the URL didn’t stick due to a Markdown failure at my end. Trying to use it to do an encryption is failing regularly, so I'm still missing something.There’s two things that could be causing this:you’re importing the key incorrectlyyour encryption code is wrongTo see which is which, try comparing your encryption code to the code in CryptoCompatibility. In fact, you should be able to take the encrypt operation from that code (QCCRSASmallCryptorT), which I know works, and wire it up to the key you imported.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Privacy & Security SubTopic: General Tags:
Sep ’15
Reply to NSURL xcode 6.4
See the App Transport Security Technote for an explanation of this.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to Expanding tilde in path == bad practice?
Should I take this as a hint that we should no longer deal with tilde expansion […]?That depends on your goals. As Tia Lapis said, you can continue down this road if you want to, but whether you should depends on what you’re actually doing with these paths. For example:If you’re building a command line tool for OS X, it makes perfect sense to implement tilde expansion in situations where the shell doesn’t do that for you.OTOH, an app would typically be better served by using a relative bookmark.OTOOH, if you’re creating an app that’s specifically targeted at technical folks, tilde expansion may still be appropriate.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15