48 lines
1.4 KiB
Mathematica
Raw Normal View History

2022-12-16 00:24:27 -08:00
//
// AppDelegate.m
// cunnyfinder
//
// Created by Femployee on 12/16/22.
// Copyright (c) 2022 FemboyFinancial. All rights reserved.
//
#import "AppDelegate.h"
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// Insert code here to initialize your application
}
2022-12-16 01:38:29 -08:00
-(IBAction)actionUohhh:(id)sender
{
/*
NSAlert *alert = [[NSAlert alloc] init];
[alert addButtonWithTitle:@"OK"];
[alert setMessageText:@"Uohhh!"];
[alert setInformativeText:@"Damn bratty girl, seducing an adult... correction is needed!"];
[alert setAlertStyle:NSInformationalAlertStyle];
[alert runModal];
*/
float x = arc4random_uniform(self.window.frame.size.width - 48);
float y = arc4random_uniform(self.window.frame.size.height - 48);
bool brat = arc4random_uniform(20) == 0;
NSRect rect = NSMakeRect(x, y, 48, 48);
NSTextField *label = [[NSTextField alloc] initWithFrame:rect];
[label setEditable:false];
[label setBezeled:false];
[label setFont:[NSFont fontWithName:@"Apple Color Emoji" size:32]];
[label setBackgroundColor:[NSColor colorWithDeviceWhite:0 alpha:0]];
[label setAlignment:NSCenterTextAlignment];
if (brat) {
[label setStringValue:@"💢"];
} else {
[label setStringValue:@"😭"];
}
[self.window.contentView addSubview:label positioned:NSWindowBelow relativeTo:sender];
}
2022-12-16 00:24:27 -08:00
@end