Olie

Santa Cruz Mountains, CA

Jul
23
comment Instance Variables for Objective C Categories
No problem. As I'm new to objc_setAssociatedObject(), I wasn't sure if there was some weird, desirable side-effect, there. Thanks!
Jul
22
comment Instance Variables for Objective C Categories
In your example implementation, what purpose does the -init override serve? It appears to be a no-op. Thanks!
Jul
21
comment Apple MFI: Is there any fee for entering the program?
As of July '14, no cost to enter, but you must own a manufacturing facility and pay for a credit-review. Does anyone have recent, first-hand knowledge of the cost of a credit review? (Link to FAQ in Old Pro's answer still valid.)
Jul
21
comment Can a hobbyist or individual apply for Apple's MFi program?
July '14: it looks like the MFi FAQ says that there is no fee to sign up, though one must purchase a credit review. Does anyone have recent info on what a credit review costs? mfi.apple.com/MFiWeb/getFAQ.action
Jul
18
revised How to find the center of a UIView after superviews have been transformed?
added working code
Jul
18
accepted How to find the center of a UIView after superviews have been transformed?
Jul
18
comment How to find the center of a UIView after superviews have been transformed?
Ooo, I knew not to use view.frames, but it didn't occur to me that I was using "frames" when I used view.layer.frames! I've seen that documentation note under UIView, but it's not repeated in the CALayer API doc. Anyway, thanks for the great answer(s).
Jul
18
comment How to find the center of a UIView after superviews have been transformed?
Gah! I'm sorry -- you are correct. Works like a champ! I had the wrong receiver; earlier comment edited.
Jul
18
comment How to find the center of a UIView after superviews have been transformed?
Oop: tested. With scaling & rotations, testView.center = [[v2 superview] convertPoint: v2.center toView: self.view]; [self.view addSubview testView]; yields a very-far-off answer! Am I mis-using? EDIT: This comment's code edited, and now it works fine.
Jul
18
comment How to find the center of a UIView after superviews have been transformed?
Do those work after transform? The problem I'm having is completely related to the superView stack having non-identity transforms. (If they do, you should put that as an answer and, once I test, I'll accept! :) )
Jul
18
asked How to find the center of a UIView after superviews have been transformed?
Jul
17
comment Get size of UIView after applying CGAffineTransform
Also note that the center property is supposed to work, even with non-identity transforms.
Jul
17
revised How to fake a touch to standard iOS keyboard
additional clarification
Jul
17
comment How to draw a custom UIView that is just a circle - iPhone app
Note to anyone who gets themselves stuck on this. Rather than rect, I accidentally used self.frame for the ellipse. The correct value is self.bounds. D'oh! :)
Jul
17
revised Ignore files that have already been committed to a Git repository
Merging more concise answer into wiki page (I think!)
Jul
17
comment Ignore files that have already been committed to a Git repository
IMO, this is the correct answer. Wiki answer works-kinda, but is awfully heavy-handed, especially given the question. (I'd fix the wiki, but I'm not sure how. "Soon!" ;)
Jul
16
comment Xcode 5 - How to change copyright format
I found it, but struggled a bit. Images would make the answer nicer. :)
Jul
16
comment How to fake a touch to standard iOS keyboard
Not sure what you're asking, Enzo. I know how to do the threading and background processing; the question is about what do I need to do in the NSOperation? That is: how do I fake the event to the built-in keyboard?
Jul
15
revised How to fake a touch to standard iOS keyboard
Added "what I'm trying to do" sample code
Jul
15
asked How to fake a touch to standard iOS keyboard
1 2 3 4 5