Profile_bird

Hey there! mdhughes_dev is using Twitter.

Twitter is a free service that lets you keep in touch with people through the exchange of quick, frequent answers to one simple question: What's happening? Join today to start receiving mdhughes_dev's tweets.

Already using Twitter
from your phone? Click here.

mdhughes_dev

  1. Red-hot Xcode #protip: If you screw around with your profiles, restart Xcode. It only picks up changes at startup. HOURS wasted today.
  2. NSString *text = [NSString stringWithContentsOfFile:text]; is a surprisingly hard line to debug.
  3. Writing custom accessors is a pain, I'm spoiled by @synthesize. I usually use KVO to get side effects, but it's too heavy for my use case.
  4. Finally had enough of the madness: #define NSPointMake(_x_, _y_) NSMakePoint((_x_), (_y_)) (and same for NSMakeRect and NSMakeSize)
  5. Keyboard focus sucks everywhere. On iPhone, have to write code to make a keyboard go away on Return. On Mac, deal with firstResponder crap.
  6. I know a year+ ago, I understood responder chains. Now I don't. I need to read a book again. Objective-C: Simulating Alzheimer's since 1985.
  7. Down to just 33 FIXME: or TODO: entries in my project! Though some of them are "FIXME: implement this gigantic week-size feature".
  8. if ([img respondsToSelector:@selector(setFlipped:)]) { [img setFlipped:YES]; [mark staysSane:YES]; } [apple seriouslyWhatTheFuckCoords];
  9. 2 days in, finished my client/server framework and I can log in! Xcode is hard, let's go drinking!
  10. Tonight's lesson: id a = @"a", b = nil, c = @"c"; [NSArray arrayWithObjects:a, b, c, nil]; Creates an array with 1 element, not 3.
  11. My day: Spend 2 hours writing a class from scratch, reading docs as I go. Discover how to do it RIGHT. Delete everything & start over.
  12. @cassarani Yeah, Tweetie's exactly the kind of thing. Transitions, limited info per screen. Mac apps are too complicated for my taste now.
  13. Building GUIs for iPhone has warped my mental model of app UI flow. Hope people like iPhone-like Mac apps.
  14. I started coding with GC, and then my code neuroses made me go back to retain/release code. May try switching it on later.
  15. Biggest annoyance of Mac dev from iPhone, ex-Javanaut? Using upside-down coords in Quartz. isFlipped works, but makes images more confusing.
  16. @pbur That doesn't keep the code compiled and working, and doesn't manage non-source resources (images, etc.)
  17. Secret ultimate power technique: Make a "Clipboard" project to hold all the boilerplate stuff you reuse. Keep it compiling clean.
  18. If you make a UITextField with black background, the clear button is invisible. Sigh.
  19. @nevynsdevdiary My issue is building UIs in IB, where I don't want to wire every button & field onto a controller, but look them up.
  20. REALLY wish UIViews had more than a single NSInteger tag. A series of "class" names like CSS would be awesome.