Live data from Hacker News

Reader-submitted Objective-C / XCode tips of 2012

nshipster.com

1–10 of 22 posts

Re: Reader-submitted Objective-C / XCode tips of 2012

#2
For clarification, this is a list of some reader-submitted tricks and tips from the last month, as a way to bring in the New Year.

I'm looking forward to doing more of these in the future, so if anyone has any ideas or suggestions, feel free to tweet them to @NSHipster. Thanks!

Re: Reader-submitted Objective-C / XCode tips of 2012

#3

For clarification, this is a list of some reader-submitted tricks and tips from the last month, as a way to bring in the New Year. I'm looking forward to doing more of these in the future, so if anyone has any ideas or suggestions, feel free to tweet them to @NSHipster. Thanks!

Good point. Updated title accordingly!

Re: Reader-submitted Objective-C / XCode tips of 2012

#4
Displaying his characteristic brilliance and familiarity of Cocoa internals Cédric Luthi submitted a reverse-engineered implementation of the NString equality methods. Fascinating!

Forgive my ignorance, but how do you go about and reverse engineer NSString equality? Looking at the code is interesting but what I'd really like to understand is where it comes from and how it was extracted; is it supposed to be close to the original implementation, is it an informed guess based on CFLite, ...? Please be patient and again forgive my ignorance.

Re: Reader-submitted Objective-C / XCode tips of 2012

#5

For clarification, this is a list of some reader-submitted tricks and tips from the last month, as a way to bring in the New Year. I'm looking forward to doing more of these in the future, so if anyone has any ideas or suggestions, feel free to tweet them to @NSHipster. Thanks!

Hey Matt, I have some amazing tricks for you but I want to save it for a Cocoaheads talk first. :-) We should get around to doing another.

Reimplementing the runtime and foundation and hacking on our Clang fork at Apportable the last 6 months, I've learned some amazingly interesting things.

Re: Reader-submitted Objective-C / XCode tips of 2012

#8
post #7
post #6

The LLDB View Hierarchy Dump tip is something that I think I can use again and again and again.

Definitely beats view.backgroundColor = [UIColor redColor];! Though I'm not sure I'll ever to shake that trusty old "debugging" hack.

I keep some UIColor categories around so at least I can have prettier colours for debugging. It would be nice to make a variant of the method that (somewhat randomly) colours all views and logs the usual info + the colour out to the console.

Re: Reader-submitted Objective-C / XCode tips of 2012

#9
post #6

The LLDB View Hierarchy Dump tip is something that I think I can use again and again and again.

It's super preliminary, but if you're debugging the problem I suspect you're debugging by looking at the view hierarchy (iOS touch handling), this might be helpful: https://github.com/MaxGabriel/debugiOSTouchHandling/blob/mas...

Re: Reader-submitted Objective-C / XCode tips of 2012

#10
post #6

The LLDB View Hierarchy Dump tip is something that I think I can use again and again and again.

It's super preliminary, but if you're debugging the problem I suspect you're debugging by looking at the view hierarchy (iOS touch handling), this might be helpful: https://github.com/MaxGabriel/debugiOSTouchHandling/blob/mas...

Yeah, I spotted that earlier today actually Max, I think it must have been something related to maintaining cocoapods. The library definitely has potential :)
Post reply on HN