Skip to content

Instantly share code, notes, and snippets.

@getflourish
Created April 20, 2015 06:42
Show Gist options
  • Select an option

  • Save getflourish/19f0995171e335a8a5ff to your computer and use it in GitHub Desktop.

Select an option

Save getflourish/19f0995171e335a8a5ff to your computer and use it in GitHub Desktop.
var textStyle = context.selection[0].style().textStyle();
var predicate = NSPredicate.predicateWithFormat("(style.textStyle != nil) && [style.textStyle isEqualForSync:%@ asPartOfSymbol:nil]", textStyle);
context.document.currentPage().children().filteredArrayUsingPredicate(predicate);
// error: Unable to parse the format string "(style.textStyle != nil) && [style.textStyle isEqualForSync:%@ asPartOfSymbol:nil]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment