mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 10:43:50 +00:00
Removed CPAlert long message test from last commit since this branch already has its own long message test. Also slight clean up.
This commit is contained in:
1 parent
ee4802e513
commit
1a27ae39a3
3 files changed
+6
-6
No files matched your search
+2
-2
@@ -399,7 +399,7 @@ CPCriticalAlertStyle = 2;
|
||||
[CPApp runModalForWindow:_alertPanel];
|
||||
}
|
||||
|
||||
/*
|
||||
/*!
|
||||
Runs the receiver modally as an alert sheet attached to a specified window.
|
||||
|
||||
@param window The parent window for the sheet.
|
||||
@@ -417,7 +417,7 @@ CPCriticalAlertStyle = 2;
|
||||
[CPApp beginSheet:_alertPanel modalForWindow:window modalDelegate:self didEndSelector:@selector(_alertDidEnd:returnCode:contextInfo:) contextInfo:contextInfo];
|
||||
}
|
||||
|
||||
/*
|
||||
/*!
|
||||
Runs the receiver modally as an alert sheet attached to a specified window.
|
||||
|
||||
@param window The parent window for the sheet.
|
||||
|
||||
@@ -199,7 +199,7 @@ var SHADOW_MARGIN_LEFT = 20.0,
|
||||
|
||||
var CPWindowSaveImage = nil,
|
||||
CPWindowSavingImage = nil;
|
||||
|
||||
|
||||
var CPWindowResizeTime = 0.2;
|
||||
|
||||
/*!
|
||||
@@ -2211,7 +2211,7 @@ CPTexturedBackgroundWindowMask
|
||||
sheet._parentView = nil;
|
||||
|
||||
if (delegate != nil && endSelector != nil)
|
||||
objj_msgSend(delegate, endSelector, sheet, returnCode, contextInfo);
|
||||
objj_msgSend(delegate, endSelector, sheet, returnCode, contextInfo);
|
||||
}
|
||||
|
||||
- (void)_setUpMasksForView:(CPView)aView
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
{
|
||||
messages = [
|
||||
[@"Are you sure you want to theorise before you have data?",
|
||||
@"Invariably, you end up twisting facts to suit theories, instead of theories to suit facts. lkjhdlkfjhlekjhglkjrshlkjfhsglksrjhfsmlgkjfskljhgkljflkjmlgkhjùlrkjhlmkjmrlekjghmlkjermlgkhjmlfekjghmlkjremlkjghmlkerjmlghkjmlerkjgmlhkjmerlkjgmhlkjmelrkjhmlkjrgmlkjhmlkrjgmlhkjrmelkgjhmlkrejhmlkjrgmlhkjmrlkgjhlmkrzj",
|
||||
@"Invariably, you end up twisting facts to suit theories, instead of theories to suit facts.",
|
||||
"Theorise", "Cancel"],
|
||||
[@"Snakes. Why did it have to be snakes?",
|
||||
nil,
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
- (void)alertDidEnd:(CPAlert)anAlert returnCode:(CPInteger)returnCode
|
||||
{
|
||||
CPLogConsole(_cmd);
|
||||
CPLogConsole(_cmd);
|
||||
if (returnCode === 0)
|
||||
[label setStringValue:"You chose the default action."];
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user