groups

name language licence
Force Application Crash Objective-C Other
64-bit Number from a String Perl Other
FourCharCode to NSString Objective-C Other
Printing Binary Representation of String C Other
ROT13 Objective-C Other
NSIndexSet to String Objective-C Other
getBoundingClientRect from WebKit using JavaScriptCore Objective-C Other
NSImage Create QuickLook icon for URL Objective-C Other

< 1 2 3 4 >



language: Objective-C
licence: Other

NSIndexSet to String

options: view full snippetsend to code collector
@interface NSIndexSet (NSIndexSet_Additions) 
// Converts an index set to a string with format (1,2-5,9)
-(NSString *) indexSetToString;
@end

// Shh... undocumented methods.  Don't tell anyone.
@interface NSIndexSet (Undocumented_NSIndexSet)
- (unsigned int)rangeCount;
- (struct _NSRange)rangeAtIndex:(unsigned int)fp8;
@end

@implementation NSIndexSet (NSIndexSet_Additions)

-(NSString *) indexSetToString
{
	
(Continues...)