Sha256: 65670ff0b8c6e2e7b943095af5ca3f98cfc49d382ba94d37d1e1a241ed75c0cd
Contents?: true
Size: 1.65 KB
Versions: 4
Compression:
Stored size: 1.65 KB
Contents
// // NSObject+SS.h // SubjectiveScript.m // // Created by Kevin Malakoff on 7/17/12. // Copyright (c) 2012 Kevin Malakoff. All rights reserved. // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following // conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR // OTHER DEALINGS IN THE SOFTWARE. // #import "SSTypes.h" @interface NSObject (SS) - (NSS*)className; - (NSS*)mutableClassName; - (NSO*(^)())toMutable; // use dynamic type checking for some JavaScript operations to reduce manual casting - (UI)count; - (NSO*(^)(id key))get; - (NSO*(^)(UI index))getAt; - (NSO*(^)(id key, NSO* value))set; // number coersion if posible - (B)B; - (I)I; - (UI)UI; - (F)F; - (D)D; // helper - (NSComparisonResult)compare:(NSO*)other; @end
Version data entries
4 entries across 4 versions & 1 rubygems