Created
July 13, 2011 17:41
-
-
Save cruffenach/1080838 to your computer and use it in GitHub Desktop.
Post Name Setter Override
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)setPostName:(NSString *)newPostName { | |
NSString *rawName = [newPostName stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; | |
if([rawName isEqualToString:@""]) { | |
rawName = @"Blog Post Temp Name"; | |
} | |
[rawName retain]; | |
[_postName release]; | |
_postName = rawName; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment