Skip to content

Commit

Permalink
Merge pull request #1773 from BlairDuncan/CPPasteboardAvailableTypesF…
Browse files Browse the repository at this point in the history
…romArrayFix

CPPasteboard availableTypeFromArray fix issue #1683
  • Loading branch information
aparajita committed Feb 19, 2013
2 parents 9e99676 + 20263e4 commit 3cfa81b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AppKit/CPPasteboard.j
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ var CPPasteboards = nil,

// Determining Types
/*!
Checks the pasteboard's types for a match with the types listen in the specified array. The array should
Checks the pasteboard's types for a match with the types listed in the specified array. The array should
be ordered by the requestor's most preferred data type first.
@param anArray an array of requested types ordered by preference
@return the highest match with the pasteboard's supported types or \c nil if no match was found
*/
- (CPString)availableTypeFromArray:(CPArray)anArray
{
return [[self types] firstObjectCommonWithArray:anArray];
return [anArray firstObjectCommonWithArray:[self types]];
}

/*!
Expand Down

0 comments on commit 3cfa81b

Please sign in to comment.