|
hackbunny posted:I'm getting NSURLErrorNotConnectedToInternet when I try to use a v6 IP address as the hostname of NSURLRequest.URL, I assume because the network has no IPv6 connectivity. However, the IPv6 address is just a mapped IPv4 address (e.g. ::ffff:10.0.0.1), and it seems NSURLConnection is being too smart for its own good because regular sockets handle the same address just fine. Is there anything I can do, save for unwrapping the address back into an IPv4 address? Just a quick check: are you enclosing the address in brackets like the RFC says?
|
# ? May 11, 2016 01:39 |
|
|
# ? Jun 7, 2024 22:22 |
|
Ender.uNF posted:Just a quick check: are you enclosing the address in brackets like the RFC says? Same effect, only difference is when I don't put it in brackets, the colons are percent-encoded. Apart from that, same exact behavior
|
# ? May 11, 2016 07:34 |
|
So is it not possible to have a universal app where one device idiom 'requires full screen' but the other doesn't? edit: I guest 7.3.1 doesn't complain about it, but 7.2 does. lord funk fucked around with this message at 22:26 on May 12, 2016 |
# ? May 12, 2016 21:26 |
|
My fellow project developer is having an issue with TestFlight. He just uploaded a version "1.0.20 build 1" to the App Store, our first public release. This release is free, with some features disabled. Unlike the TestFlight version, this one supports down to iOS 6.1. So, herein lies a new problem: it obliterated the beta release. Even pushing a "1.0.20 build 2" to TestFlight does not appear for testers. If this iOS 6.1 thing becomes a point of contention, we'll need to switch to another beta release platform. Perhaps Crashlytics...
|
# ? May 13, 2016 08:06 |
|
What is the actual build number string?
|
# ? May 13, 2016 10:53 |
|
One day I dream of an Xcode where you can drag files into the project navigator and they actually copy into your project.
|
# ? May 13, 2016 14:32 |
|
Crashlytics is good bc the builds are available in 1/60 the time
|
# ? May 13, 2016 15:35 |
|
Regular Nintendo posted:Crashlytics is good bc the builds are available in 1/60 the time 1/60th of the time it works every time.
|
# ? May 13, 2016 16:40 |
|
lord funk posted:One day I dream of an Xcode where you can drag files into the project navigator and they actually copy into your project. Is the "Copy if Needed" box checked? Because this works 100% of the time for me. Also, make sure the correct target is selected.
|
# ? May 13, 2016 23:54 |
|
lord funk posted:One day I dream of an Xcode where you can drag files into the project navigator and they actually copy into your project. Usually this is because you previously added a reference to an item that you didn't want copied, and we remember the state of the check box from one addition to the next.
|
# ? May 13, 2016 23:58 |
|
Also gets weird inside of .bundles iirc
|
# ? May 14, 2016 02:21 |
|
hackbunny posted:The most ridiculous App Store rejection yet: This is basically why none of my new side projects are iOS apps anymore. It's just not worth dealing with the review process, never mind the debate of "do I release a new update and wipe out all of my reviews?" Web apps are so much more pleasant (not that the web doesn't have its own obnoxious stuff). Given what's happening with app review times lately, it's my hope that WWDC is going to seriously overhaul the process. Review times are like 1-2 days now instead of the 7-10 they always used to be. Good stuff, though the whole process is still not how releasing software work in 2016.
|
# ? May 14, 2016 02:36 |
|
@DocBlock @eschaton no, the problem is when you drag a folder of items into some folder reference (group? who cares) that has Xcode-y problems. So even when you Copy Items, and even when the items do copy (checked in Finder), the references are all red / missing.
|
# ? May 14, 2016 16:13 |
|
.. edit I'm an idiot
|
# ? May 14, 2016 16:28 |
|
RT @lord_funk same
|
# ? May 14, 2016 16:39 |
|
Solid:
|
# ? May 15, 2016 00:17 |
|
Hi Kevin!
|
# ? May 15, 2016 00:33 |
|
pokeyman posted:Hi Kevin! How do you know that's me and I didn't beat up some guy named Kevin and steal his iPhone 6? Huh???
|
# ? May 15, 2016 00:44 |
|
obviously the files are all named "Project.xcodeproject" idk how thats so hard to understand
|
# ? May 15, 2016 01:14 |
|
lord funk posted:Solid: Maybe quit the app before trying to modify it will help? IDK Maybe add the images to one target when you're copying them, then once added select them and check the other projects they're supposed to belong to on the side panel?
|
# ? May 15, 2016 02:40 |
|
Maybe open finder
|
# ? May 15, 2016 04:52 |
|
zap the pram
|
# ? May 15, 2016 07:01 |
|
Doc Block posted:Maybe quit the app before trying to modify it will help? IDK I mean you can copy them to the folder in Finder, add them to Xcode and not 'Copy items' and that works. But the word 'works' is kind of misleading in that sentence. The problem was
|
# ? May 15, 2016 12:41 |
|
Why is there no built-in way to reverse a CGPath? :/ Doc Block fucked around with this message at 17:59 on May 16, 2016 |
# ? May 16, 2016 06:28 |
|
All I want to do is render text with a stroke that's outside the text, with no fill. The normal way of getting an "outside" stroke of drawing the stroke and then fill over top obviously can't be used (because there's no fill), so the stroke is the equivalent of using "Centered" mode in whatever drawing program you prefer, and looks lovely. I thought reversing the glyph path and then setting that as the clipping path would work (since StackOverflow says that's how you get an outside stroke on non-text paths), but nope. Gonna have to rethink this. I've got a ton of glyphs to draw all over the place. Maybe I can add them all to one path, then use that to make an image for use as a clipping mask... Doc Block fucked around with this message at 18:00 on May 16, 2016 |
# ? May 16, 2016 08:50 |
|
Was able to get the effect that I want. No matter how large the stroke width is, it never draws "inside" the characters, even when fill isn't rendered: In this image the stroke width has been set to something comically huge as a test. Instead of messing around with reversing paths etc., I just add all the glyph paths to one big CGPath, draw that as fill in an alpha mask, use the alpha mask as a clip mask in the main CGContext, and then draw the big CGPath with the requested stroke width in the main CGContext. Doc Block fucked around with this message at 00:05 on May 17, 2016 |
# ? May 16, 2016 21:39 |
|
Doc Block posted:Why is there no built-in way to reverse a CGPath? I know... you'd have to convert the list of points into an array using CGPathApply, and then reverse the array. There's some helpful code I found here, though I didn't use it since I took an entirely different approach to my problem that wasn't based on the path's points.
|
# ? May 17, 2016 16:20 |
|
Yeah, that's what I did, but it still didn't work for my purposes. Wound up using a clipping mask instead of a clipping path instead (see my previous post).
|
# ? May 17, 2016 18:47 |
|
God seriously gently caress the invasive system update alert and gently caress Apple for thinking that behavior is okay. Would it be okay that I post a system alert if the user hasn't touched my app in a few days?code:
|
# ? May 23, 2016 15:21 |
|
If your app had pervasive security implications and couldn't be uninstalled, perhaps.
|
# ? May 23, 2016 15:25 |
|
I'm trying to do the followingcode:
|
# ? May 23, 2016 19:02 |
|
Don't use weak?
|
# ? May 23, 2016 19:07 |
|
pokeyman posted:Don't use weak? In this case the parent has a reference to to the helper so I have a retain cycle I was trying to fix. The odd thing is I have one class using the Helper class without any issues and another one is throwing a NSInternalInconsistencyException on dealloc. The usage is the same so I'm not sure what's going on there. fankey fucked around with this message at 21:02 on May 23, 2016 |
# ? May 23, 2016 20:29 |
|
Weak reference don't magically call associated property setters when they get cleared; that's just not how the technology works.
|
# ? May 23, 2016 21:12 |
|
rjmccall posted:Weak reference don't magically call associated property setters when they get cleared; that's just not how the technology works. Yeah I've figured that out. My code that was there to remove the observer was never getting called. The odd thing is that in one case the objects were able to be dealloced without any issue and in another case an exception is thrown. The usage is identical so the behavior is a mystery at this point. One odd thing I'm noticing - if I step through dealloc on my Helper class the debugger has a valid value for _parent but printing _parent or any code that checks for parent against nil determines that it's nil. I'm wondering if I should forgo KVO and just roll my own since I'm in control of all the classes that are in use.
|
# ? May 23, 2016 21:24 |
|
You can use associated objects to automatically unregister KVO observers on dealloc, but...fankey posted:I'm wondering if I should forgo KVO and just roll my own since I'm in control of all the classes that are in use. this is nearly always the correct choice. KVO can be useful when you don't control the object being observed, but implementing your own form of change notifications when you do is nearly always going to be far better.
|
# ? May 23, 2016 21:59 |
|
fankey posted:Yeah I've figured that out. My code that was there to remove the observer was never getting called. The odd thing is that in one case the objects were able to be dealloced without any issue and in another case an exception is thrown. The usage is identical so the behavior is a mystery at this point. This is really just a debugger bug: the debugger ignores the fact that it's a __weak reference, so it just reports the underlying memory contents, which aren't necessarily immediately nil'ed out when dealloc starts.
|
# ? May 23, 2016 22:07 |
|
Plorkyeran posted:You can use associated objects to automatically unregister KVO observers on dealloc, but... Agreeing with this. While not directly a 1:1 with KVO, I love the willSet and didSet in Swift. Most of the time that provides the capabilities that I would have previously used KVO for.
|
# ? May 23, 2016 22:17 |
|
Where is the magical new location that Xcode is storing some fuckery that is not DerivedData? I used to always run into a problem where it would refuse to archive if I switched targets to a target with a different bundle ID (provisioning profile bundle ID does not match bundle ID.) I could always fix the problem by blowing away DerivedData. That no longer works. edit/fixed: Xcode automagically put the wrong bundle ID in my project settings for some reason, even though the Info.plist was correct. Brilliant. ManicJason fucked around with this message at 23:13 on May 23, 2016 |
# ? May 23, 2016 22:59 |
|
|
# ? Jun 7, 2024 22:22 |
|
I was really proud long ago when I figured out how to implement KVO. Now I'm systematically removing it wherever possible because if I see another 'deallocated while observers were still watching' crash I'm going to kill myself.
|
# ? May 24, 2016 14:21 |