mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-09 12:17:13 +00:00
XcodeCapp improvements
- Convert to ARC, garbage collection is deprecated. - Support radio buttons and groups as outlets in IB.
This commit is contained in:
@@ -27,9 +27,9 @@ AppController *SharedAppControllerInstance = nil;
|
||||
|
||||
float heightForStringDrawing(NSString *myString, NSFont *myFont, float myWidth)
|
||||
{
|
||||
NSTextStorage *textStorage = [[[NSTextStorage alloc] initWithString:myString] autorelease];
|
||||
NSTextContainer *textContainer = [[[NSTextContainer alloc] initWithContainerSize:NSMakeSize(myWidth, FLT_MAX)] autorelease];
|
||||
NSLayoutManager *layoutManager = [[[NSLayoutManager alloc] init] autorelease];
|
||||
NSTextStorage *textStorage = [[NSTextStorage alloc] initWithString:myString];
|
||||
NSTextContainer *textContainer = [[NSTextContainer alloc] initWithContainerSize:NSMakeSize(myWidth, FLT_MAX)];
|
||||
NSLayoutManager *layoutManager = [[NSLayoutManager alloc] init];
|
||||
|
||||
[layoutManager addTextContainer:textContainer];
|
||||
[textStorage addLayoutManager:layoutManager];
|
||||
@@ -63,7 +63,7 @@ float heightForStringDrawing(NSString *myString, NSFont *myFont, float myWidth)
|
||||
_archivedDataView = [NSKeyedArchiver archivedDataWithRootObject:dataViewError];
|
||||
|
||||
if (!growlDelegateRef)
|
||||
growlDelegateRef = [[[PRHEmptyGrowlDelegate alloc] init] autorelease];
|
||||
growlDelegateRef = [[PRHEmptyGrowlDelegate alloc] init];
|
||||
|
||||
[GrowlApplicationBridge setGrowlDelegate:growlDelegateRef];
|
||||
|
||||
@@ -437,7 +437,7 @@ float heightForStringDrawing(NSString *myString, NSFont *myFont, float myWidth)
|
||||
NSFont *currentFont = [[dataViewError fieldMessage] font];
|
||||
float height = heightForStringDrawing(content, currentFont, [tableView frame].size.width);
|
||||
|
||||
return height + 25;
|
||||
return height + 31;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user