-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathUUObject.h
More file actions
27 lines (20 loc) · 744 Bytes
/
UUObject.h
File metadata and controls
27 lines (20 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// UUObject.h
// Useful Utilities - NSObject extensions for attaching arbitrary data to objects. Useful for when
// you have painted yourself into a design corner.
//
// Created by Jonathan on 3/4/13.
//
// License:
// You are free to use this code for whatever purposes you desire. The only requirement is that you smile everytime you use it.
//
// Contact: @cheesemaker or jon@threejacks.com
#import <Foundation/Foundation.h>
@interface NSObject (UUFramework)
- (void) attachUserInfo:(id)userInfo; //Uses kUUDefaultUserKey
- (id) userInfo;
- (void) attachUserInfo:(id)userInfo forKey:(const void*)key;
- (id) userInfoForKey:(const void*)key;
//Here for convenience...
extern unsigned long const kUUDefaultUserKey;
@end