Why won't my file load?
Why won't my file load?
- Subject: Why won't my file load?
- From: Chris Gehlker <email@hidden>
- Date: Tue, 12 Feb 2002 15:06:30 -0700
I'm working on a little IDE for Ruby but I can't get saved files to reload.
Here is my code:
- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType
{
NSString *test;
NSString *aString = [[NSString alloc] initWith
Data:data
encoding:NSASCIIStringEncoding];
NSLog(@"%@", aString); // a nice string with whatever was saved
[sourceView setString:aString];
test = [sourceView string];
NSLog(@"%@", test); // always says: (null)
[aString release];
if (test == nil)
return NO;
return YES;
}
Sending setString to NSTextViews is working elsewhere in the program so I'm
stumped. Any help apprecieated.
--
We are all born originals - why is it so many of us die copies? -Edward
Young, poet (1683-1765)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.