Here’s my @interface def;
@interface Thumbnail : UIView <NSCoding>{
NSMutableString *imageCacheKeyBase;
}
@property (nonatomic, copy) NSMutableString *imageCacheKeyBase;
@end
Here’s my @implementation:
@synthesize imageCacheKeyBase;
Then in a method called initWithAsset in the Thumbnail class:
self.urlString = [[_asset.defaultRepresentation.url absoluteString] copy];
c = (char*)[urlString UTF8String];
while (*c != '=')
++c;
++c;
self.imageCacheKeyBase = [NSString stringWithFormat:@"%s_", c];
And, so when the Thumbnail allocing class tries to reference thumbnail.imageCacheKeyBase the stinkin’ thing is nil. I’ve tried a million different approaches to getting a string variable to stick as a property of thumbnail. I even tried simply self.imageCacheKeyBase = @”dave”. Nuthin’. I’ve tried retain and retain retain (I know that’s stupid but I was trying anything. I even tried simply making the property a char *.
I’ve been researching this all day.
Help please.
Somewhere down the line, something is nil. try NSLogging the values of each object or data type.