Search results for

eskimo

34,935 results found

Post

Replies

Boosts

Views

Activity

Reply to Swift memory security
Apple's own recommendation is to zero-out sensitive data:Indeed. My point is that:Swift makes no guarantees about this, andgiven the complexities of the Cocoa [Touch] frameworks, it's infeasible to use our high-level APIs and follow this recommendationShare 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:
Jun ’15
Reply to Using Swift to get (scrape) data from a web page
This really depends on how the web site is structured. For simple web sites you can download the HTML and parse that but a lot of web sites are complex in a way that makes this impossible (for example, if they generate their content dynamically via JavaScript). If you're dealing with a complex site you must run the site in a web view in order for it to render correctly. Once you do that you can run JavaScript within that web view to get out the data you want.Needless to say this isn't particularly easy. Neither is it particularly related to Swift (-: If you have follow-up questions I recommend you post them to either:Core OS > Networking for the networking side, orone of the Safari and Web topic areas, for the JavaScript side of thingsShare 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:
Jun ’15
Reply to Populating a Swift array in a C function callback
I was intrigued by your question because I often end up using low-level APIs that have C callbacks. In Objective-C I typically get around this by writing my own block-based wrapper for the function. For example:static void MyPathApplierFunction(void * __nullable info, const CGPathElement * element) { CGPathApplierBlock block; block = (__bridge CGPathApplierBlock) info; block(element); } extern void CGPathApplyBlock(CGPathRef __nonnull path, CGPathApplierBlock __nonnull block) { CGPathApply(path, (void *) block, MyPathApplierFunction); }Now that we have C callbacks in Swift, I figured you could do the same. I came up with two different approaches:typealias CGPathApplierBlockA = (CGPathElement) -> Void func CGPathApplyBlockA(path: CGPath, @noescape block: CGPathApplierBlockA) { var blockBox = Box(block) withUnsafeMutablePointer(&blockBox) { blockBoxPtr in CGPathApply(path, blockBoxPtr, { info, element in let blockBox2 = UnsafePointer<Box<CGPathApplierBlockA>>(info).memory blockBox2.value?(ele
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to wi-fi hotspot network
Well, your timing couldn't be better. Creating this sort of 'hotspot helper' app on current systems is extremely painful, both technically and from a business perspective. OTOH, iOS 9 is expected to include a shiny new public API for this. You should watch WWDC 2015 Session 717 What's New in Network Extension and VPN for the details.Make sure you watch all the way to the end because that covers some important business aspects to this.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Jun ’15
Reply to Bonjour detection
Apparently Apple is moving back on it's strategy, and for privacy reasons is removing Bonjour stuff from the OS core.That's a very odd way to put things. Bonjour has always been about advertising services, not devices. iOS has no services to advertise by default, and thus it does not appear to Bonjour. This is expected behaviour.OTOH, if you register a Bonjour service from within an app that you run on the device, it shows up in Bonjour just fine.Remember that the goal of Bonjour is to help users connect to services, not to provide a network management protocol.1) To be sure I have understood everything right, and if it is realy impossible to discover iDevices with bonjour ?Correct.2) To know any other way to discover an iDevice and more generaly a Smartphone connected on the local WiFi network.In general there's no good way to do this. You can ping every IP address but...3) To know how to ping a iDevice when it is in sleep mode, all my ping requests fail 30 seconds after the iDevice enters in sleep mode.To s
Jun ’15
Reply to Bonjour detection
Thank you eskimo for your clear reponse.My mind was a bit blurred yesterday, but now with your explanations about Bonjour, the iPhone behavior makes sense.In that case, do you think if I register a Bonjour service through an App, will the service be still viewable from an other device after the app's closed ? And what after the app is totally killed ?You explanations about wifi in screen off mode is clear. I have no sim card in my test device and the only connection is made with WiFi. The ping is not available in sleep mode.EDIT : So after several hours, I have made a prototype app that just advertise a fake Bonjour service. It advertise well while the app is running on foreground, but if the app goes to the background or if it is killed the advertisement stops.I would like it to continue , is this possible ?
Jun ’15
Reply to Background tiling and Zooming in/out
Eskimo, Thanks for your response. To give you a better idea of what I'm trying to do: I want to make a game in SpriteKit that allows me to do what I described above - a tiled background that I can pan around, as well as to zoom in/out. When I do the zooming my tiles don't move to the appropriate position as the tiles shrink or expand, allowing gaps to form in between tiles. The purpose of this, is to create a paralaxing effect with the background, middleground and a foreground. Hopefully, I was able to explain myself better this time.I'll will research about Cocoa Touch Framework. In the mean time, could you suggest any solutions, if any, that I can try to implement using Sprite Kit?Thanks,Noah.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’15
Reply to SSL Pinning with AFNetworking
I don't know AFNetworking well enough to help you with this question. If no one else chimes in, I recommend you do one of the following:Ask your AFNetworking question via AFNetworking's support channel, the details of which are on their web site.Recast your question in terms of Apple APIs (NSURLSession, Security framework) at which point I can tackle it here.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:
Jul ’15
Reply to Can NSUrlSessionUploadTask be used in a background session configuration?
Can somebody confirm that uploads and background session configuration don't work together?Yes, or no, depending on how you expect folks to answer a negative question (-:It is possible to upload in the background by creating an NSURLSessionUploadTask in an NSURLSession background session. I've written code to do that myself and, while there are some gotchas, as their are with any NSURLSession background session code, the basic functionality works just fine.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:
Jul ’15
Reply to OS X Localization
Apple does not support this.From a technical perspective this would be very hard, and it's not getting any easier as the system evolves.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Jul ’15
Reply to Could not load NIB in bundle
Are you still stuck on this?I've seen this happen for two different reasons:There's something stale in your app build or install. You should do a clear build, remove the app from the device, and try again.The app is not building correctly. Use Show Package Contents in the Finder to look at your app's structure and verify that it is as you expect it to be.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Jul ’15
Reply to Does iOS support exchangedata() API ?
I'm surprised that this doesn't work on iOS. Have you tested similar code on OS X to make sure it's not a problem with your code?However, even if you can get this working I recommend that you not. exchangedata is a historical anomaly and it's not a good idea to base new code on it. For example, if you ever ported that code to OS X you'd find that it only works on certain file systems (primarily HFS Plus and AFP), so you need a backup plan anyway. And once you have a backup plan, you might as well use it all the time (-: 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:
Jul ’15