Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Proxying in PXSourceList 2

Proxying in PXSourceList 2

The slides from my Cocoa Kucha 2 talk at NSLondon in January 2014. I talked about the new proxy-based implementation in PXSourceList version 2.

Video here: http://vimeo.com/86478379

Alex Rozanski

January 16, 2014
Tweet

More Decks by Alex Rozanski

Other Decks in Programming

Transcript

  1. - (BOOL)outlineView:(NSOutlineView *)outlineView shouldExpandItem:(id)item { SEL newSelector = @selector(sourceList:shouldExpandItem:); if

    ([_actualDelegate respondsToSelector:newSelector]) return [_actualDelegate sourceList:self shouldExpandItem:item]; return YES; }
  2. -methodSignatureForSelector: struct objc_method_description description = {NULL, NULL}; ! for (NSUInteger

    i = 0; i < 4; ++i) { description = protocol_getMethodDescription(protocol, selector, (i / 2) % 2, i % 2 ); if (description.types != NULL && description.name != NULL) break; }