Software Engineering discussion
Beautiful Code
>
Treating Code As an Essay
date
newest »


I agree with you UILabel text example. Windows MFC GUI always bothered me, because there's so much setup/overhead. I'm not sure if that's the nature of GUI or not. ASP.Net C# GUI seems like it has alot less unnecessary lines to write to achieve the same results as MFC GUI. I would guess other modern languages have solved this problem similarily.
.h file
UILabel *text;
@property (nonatomic, retain) IBOutlet UILabel *text;
.m file
@synthesize text;
...
self.text = nil;
...
[text release:];
Yep, 5 lines of code for one variable!