Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (19 sloc) 0.739 kb
//
// KSXMLAttributes.h
// Sandvox
//
// Created by Mike on 19/11/2010.
// Copyright 2010-2012 Karelia Software. All rights reserved.
//
// A subclass of NSDictionary that is slightly mutable, and preserves ordering
#import <Foundation/Foundation.h>
@interface KSXMLAttributes : NSDictionary
{
@private
NSMutableArray *_attributes;
}
- (id)initWithXMLAttributes:(KSXMLAttributes *)info;
// Unlike NSDictionary, no protection is provided against duplicate keys, to improve performance. If you do add the same key twice, it will appear twice while enumerating, but which value is reported for it is indeterminate
- (void)addAttribute:(NSString *)attribute value:(id)value;
- (void)close; // removes all attributes
@end
Jump to Line
Something went wrong with that request. Please try again.