#4822 Enable Automatic Reference Counting

This commit is contained in:
Mitchell Livingston
2012-03-10 03:38:58 +00:00
parent 302e33771a
commit 11f57ccb18
71 changed files with 259 additions and 675 deletions

View File

@@ -80,29 +80,21 @@ NSString * urlString = nil;
[fCancelButton setFrame: cancelFrame];
}
- (IBAction) beginSheetForWindow: (NSWindow *) window
{
[NSApp beginSheet: [self window] modalForWindow: window modalDelegate: self
didEndSelector: @selector(sheetDidEnd:returnCode:contextInfo:) contextInfo: nil];
}
- (void) openURLEndSheet: (id) sender
- (IBAction) openURLEndSheet: (id) sender
{
[[self window] orderOut: sender];
[NSApp endSheet: [self window] returnCode: 1];
}
- (void) openURLCancelEndSheet: (id) sender
- (IBAction) openURLCancelEndSheet: (id) sender
{
[[self window] orderOut: sender];
[NSApp endSheet: [self window] returnCode: 0];
}
- (void) sheetDidEnd: (NSWindow *) sheet returnCode: (NSInteger) returnCode contextInfo: (void *) contextInfo
- (NSString *) urlString
{
[urlString release];
urlString = [[fTextField stringValue] retain];
[fController urlSheetDidEnd: self url: urlString returnCode: returnCode];
return [fTextField stringValue];
}
- (void) controlTextDidChange: (NSNotification *) notification