Example #1
0
 public NSObject getAttribute(
     NSAttributedStringAttribute attribute, @MachineSizedUInt long location, NSRange range) {
   if (attribute == null) {
     throw new NullPointerException("attribute");
   }
   return getAttribute(attribute.value(), location, range);
 }
Example #2
0
 /** @since Available in iOS 4.0 and later. */
 public void enumerateAttribute(
     NSAttributedStringAttribute attribute,
     @ByVal NSRange enumerationRange,
     NSAttributedStringEnumerationOptions opts,
     final VoidBlock3<NSObject, NSRange, BooleanPtr> block) {
   if (attribute == null) {
     throw new NullPointerException("attribute");
   }
   enumerateAttribute(attribute.value(), enumerationRange, opts, block);
 }