|
I'm trying to enable accessibility labels for a tableview that's a child of a second tableview and there doesn't seem to be any way to do this. The built-in traversal doesn't seem to see the child at all, and attempting to use UIAccessibilityContainer to manually expose the second table not only doesn't work but breaks the accessibility of other non-table child views. Is there any way at all to do this? I know table views are not supposed to be children of each other but I was able to find workarounds for the other issues that came up.
|
# ? May 28, 2014 20:13 |
|
|
# ? May 17, 2024 14:04 |
|
haveblue posted:I'm trying to enable accessibility labels for a tableview that's a child of a second tableview and there doesn't seem to be any way to do this. The built-in traversal doesn't seem to see the child at all, and attempting to use UIAccessibilityContainer to manually expose the second table not only doesn't work but breaks the accessibility of other non-table child views. I'm guessing UITableView implements UIAccessibilityContainer to expose cells (and deal with cell reuse etc.) and that implementation is probably messing you up. Implementing UIAccessibilityContainer yourself is probably the right way to go, but then you're responsible for replicating everything that UIView and UITableView do themselves.
|
# ? May 28, 2014 20:16 |
|
I thought that as well, but it doesn't seem to be that simple. I can see it querying for the accessibility elements related to the table, and that it stops its search when it locates the correct one that was tapped on, but once the accessibility element is returned it doesn't do anything it with- there's no response from the UI or the inspector.
|
# ? May 28, 2014 21:02 |
|
I can across a leak in my app that I'm working on, and I realized I could be doing something very fundamentally wrong. I'm creating an instance of a subclass in another class and allocating an object from the instance that's unique to that subclass and not it's super. I'm not entirely sure what the leak is being caused by, because I might have a misunderstanding about how it can be allocated (and where), and how it can deallocated. I've been using Obj-C for a while and it kind of freaks me out that I may have been doing this wrong. I'm not using ARC because it's pre-ARC and fairly large, depends on stuff that doesn't use it, etc. I have a pretty detailed explanation on StackOverflow: http://stackoverflow.com/questions/23938669/obj-c-allocating-a-subclassed-object-from-another-object-and-releasing
|
# ? May 29, 2014 19:02 |
|
LP0 ON FIRE posted:I can across a leak in my app that I'm working on, and I realized I could be doing something very fundamentally wrong. I'm creating an instance of a subclass in another class and allocating an object from the instance that's unique to that subclass and not it's super. I'm not entirely sure what the leak is being caused by, because I might have a misunderstanding about how it can be allocated (and where), and how it can deallocated. I've been using Obj-C for a while and it kind of freaks me out that I may have been doing this wrong. Objective-C code:
StackOverflow question posted:NSArray instance variable --- Anyways, the usual rule is that the retain-release pairs should always match within the same class. If Class M +1's an NSArray, it should -1 it in class M. Likewise for Class B. So assuming your property is well-behaved, when you do "tempClassB.myNSArray = [finalArray copy];" or "tempClassB.myNSArray = [[NSArray alloc] initWithArray:finalArray];", you're +1'ing it in M, and your property setter is +1'ing it in B. Without a matching autorelease in M, you do indeed have a leak. Make your myNSArray use @property (nonatomic, copy, ...etc,whatever) NSArray *myArray;, then just change it to tempClassB.myNSArray = finalArray. Or if you really need to copy/re-allocate an array, autorelease it in M.
|
# ? May 29, 2014 19:20 |
|
Thanks Doctor. I totally used the wrong terminology there, and I need to get better at that. I don't know what I was thinking of allocating it there (M) and somehow have it allocate in B. Allocating it in B, works fine now.
|
# ? May 29, 2014 19:49 |
|
LP0 ON FIRE posted:Thanks Doctor. I totally used the wrong terminology there, and I need to get better at that. I don't know what I was thinking of allocating it there (M) and somehow have it allocate in B. Allocating it in B, works fine now. That's vague enough that I'm not totally sure you're doing it The Right Way™, but I hope that you are. You shouldn't need to allocate an array in B at all. If your property in B has the 'copy' attribute it should just retain an NSArray (and copy it when it's an NSMutableArray, leaving the original alone).
|
# ? May 29, 2014 20:11 |
|
Doctor w-rw-rw- posted:That's vague enough that I'm not totally sure you're doing it The Right Way™, but I hope that you are. You shouldn't need to allocate an array in B at all. If your property in B has the 'copy' attribute it should just retain an NSArray (and copy it when it's an NSMutableArray, leaving the original alone). Thanks, because I still wasn't doing it right. So I was eventually trying the right way, and it kept reporting a leak on a commented out line. I had to close the Instruments window, Profile, and click leaks again. I guess this is normal protocol because it analyzes the code once when it profiles, and never after you make changes in the code, until you go up to the menu and click Profile again.
|
# ? May 29, 2014 20:30 |
|
LP0 ON FIRE posted:Thanks, because I still wasn't doing it right. I suggest installing DerivedData Exterminator via Alcatraz and clicking that button often and with extreme prejudice.
|
# ? May 29, 2014 21:14 |
|
Doctor w-rw-rw- posted:I suggest installing DerivedData Exterminator via Alcatraz and clicking that button often and with extreme prejudice. Will do. Thank you! I've also had problems with building and still reporting errors/warnings, even though there aren't any, so hopefully it will help that too.
|
# ? May 29, 2014 21:21 |
|
Who's up for WWDC goon meet? PM me with contact details.
|
# ? May 30, 2014 02:31 |
|
Hughlander posted:Who's up for WWDC goon meet? PM me with contact details. I am! PM'd.
|
# ? May 30, 2014 03:05 |
|
I feel like I'm missing something obvious, but setting scroll insets don't seem to have any effect. How do have a (non-sticky) section header in a UICollectionView (with a flow layout) which starts offscreen, i.e. on initial display, the header is hidden?
|
# ? May 30, 2014 19:12 |
|
Doctor w-rw-rw- posted:I feel like I'm missing something obvious, but setting scroll insets don't seem to have any effect. Assuming this is the first section, can you set contentOffset to have the collection view scrolled down a bit initially? also: some of you dinguses work at facebook, right? I'm interviewing there sometime next month.
|
# ? May 30, 2014 19:21 |
|
Doctor w-rw-rw- posted:I feel like I'm missing something obvious, but setting scroll insets don't seem to have any effect. After loading the collection view, set its contentOffset.y to the height of the header. If the collection view is shorter than its bounds's height you can pad out the difference with a bottom contentInset. You'll want to recalculate that inset whenever the contents change or the bounds change, otherwise someone could scroll the whole contents off the screen.
|
# ? May 30, 2014 19:24 |
|
Okay, so I'm not insane, and I was doing it the right way, I just forgot that I'm resetting the scrollView's contentInsets externally since I'm doing some scrollview gesture recognizer hacking mixed with a contained UINavigationController, mixed with using Pop for animations.
|
# ? May 30, 2014 19:32 |
|
Doctor w-rw-rw- posted:Okay, so I'm not insane, and I was doing it the right way, I just forgot that I'm resetting the scrollView's contentInsets externally since I'm doing some scrollview gesture recognizer hacking mixed with a contained UINavigationController, mixed with using Pop for animations. I've set more than a few breakpoints on -[UIScrollView setContentOffset:animated:] to see what the hell was going on.
|
# ? May 30, 2014 19:44 |
|
Quiet in this thread today...I guess we're all on pilgrimage to WWDC?
|
# ? Jun 1, 2014 19:26 |
|
Axiem posted:Quiet in this thread today...I guess we're all on pilgrimage to WWDC? Or wallowing in self-pity; this is my third or fourth attempt to get tickets that failed.
|
# ? Jun 2, 2014 04:16 |
|
Or preparing for a first job interview in three years. Good thing I'm not sold on moving to SF for this job or even doing full time work, so it's not stressful. Contract work looks pretty appealing short term. It's nice having that as a baseline to which to compare any job opportunity. Who am I kidding? I'm also wallowing in self pity.
|
# ? Jun 2, 2014 04:35 |
|
I'm using my boss's ticket, so my self-pity will be conditional on being able to get in the building. I forget - do they check IDs? Or just badges?
|
# ? Jun 2, 2014 04:50 |
|
I'm pretty sure Apple has advised us to share badges in the past. I know we've done so, certainly.
|
# ? Jun 2, 2014 05:23 |
|
Edit: Wrong thread!
HiriseSoftware fucked around with this message at 06:27 on Jun 2, 2014 |
# ? Jun 2, 2014 06:20 |
|
Doctor w-rw-rw- posted:I'm using my boss's ticket, so my self-pity will be conditional on being able to get in the building. I forget - do they check IDs? Or just badges? You need id to pick up the badge after that it's just that you have one.
|
# ? Jun 2, 2014 06:25 |
|
Ender.uNF posted:Or wallowing in self-pity; this is my third or fourth attempt to get tickets that failed. Ding ding ding ding ding!
|
# ? Jun 2, 2014 14:11 |
|
Yeah I'm waiting for the relentless despair to let up, but that's not happening. Stupid lottery. :/
|
# ? Jun 2, 2014 15:48 |
|
https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h A UIWebView replacement in 10.10 and iOS 8? code:
|
# ? Jun 2, 2014 17:20 |
|
ManicJason posted:Or preparing for a first job interview in three years. Good thing I'm not sold on moving to SF for this job or even doing full time work, so it's not stressful. Contract work looks pretty appealing short term. It's nice having that as a baseline to which to compare any job opportunity. Haven't heard anything from Apple; they must not be hurting for people that badly.
|
# ? Jun 2, 2014 17:25 |
|
kitten smoothie posted:https://github.com/WebKit/webkit/blob/master/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.h Looks like the NSURLSession treatment, modernizing a crusty old API. Hopefully it isn't relegated to private API for a year.
|
# ? Jun 2, 2014 17:42 |
|
New dev tools?! EDIT: Oh yeah, following the thread there, I just posted here cause holy poo poo that was unexpected. Fate Accomplice fucked around with this message at 18:14 on Jun 2, 2014 |
# ? Jun 2, 2014 18:10 |
|
Malloreon posted:New dev tools?! There's a TVIV thread in SH/SC, though obviously dev tool chat is on point here too!
|
# ? Jun 2, 2014 18:13 |
|
I made a thread for talking about Swift, if you're interested.
|
# ? Jun 2, 2014 19:58 |
|
It's like someone decided to fulfill the John Siracusa wish list, then struck a new filesystem from it so they'd still have something to troll him with.
|
# ? Jun 2, 2014 20:12 |
|
Ender.uNF posted:It's like someone decided to fulfill the John Siracusa wish list, then struck a new filesystem from it so they'd still have something to troll him with. Siracusa with nothing to complain about would wither and die. Note: I love Siracusa and still mourn the end of Hypercritical. ATP is great but not the same.
|
# ? Jun 2, 2014 20:14 |
|
Open the new xcode release notes and search for radar #17022386.
|
# ? Jun 2, 2014 20:46 |
|
kitten smoothie posted:Open the new xcode release notes and search for radar #17022386. Oh poo poo! Edit: Oh hmm, it looks like it's not even a secret. Look at your Simulator list. I suspect the Tools State of the Union is gonna be pretty drat interesting this year. Edit2: Also the new XCode icon's hammer looks like it has a wasting disorder. Edit3: I think the aforementioned thing is related to the share-card/activities stuff, at least in part. ultramiraculous fucked around with this message at 20:58 on Jun 2, 2014 |
# ? Jun 2, 2014 20:48 |
|
Oh hey I don't have to buy Reveal anymore...
|
# ? Jun 3, 2014 09:46 |
|
ultramiraculous posted:Oh hey I don't have to buy Reveal anymore... Evidently neither did Apple.
|
# ? Jun 3, 2014 15:10 |
|
It is just a little buggy on my machine (does this every time): https://www.youtube.com/watch?v=vi2vxq1Ueb8 lord funk fucked around with this message at 15:29 on Jun 3, 2014 |
# ? Jun 3, 2014 15:21 |
|
|
# ? May 17, 2024 14:04 |
|
At first I was like "Scrub doesn't know how to capture a screen cast".
|
# ? Jun 3, 2014 20:24 |