Questions tagged [appkit]

The Application Kit is a collection of classes provided by OpenStep operating systems such as OPENSTEP, GNUstep, and Mac OS X.

The Application Kit is a collection of classes provided by OpenStep operating systems such as OPENSTEP, GNUstep, and Mac OS X.

Apple's reference documentation describes AppKit as follows:

AppKit contains all the objects you need to implement the user interface for a macOS app—windows, panels, buttons, menus, scrollers, and text fields—and it handles all the details for you as it efficiently draws on the screen, communicates with hardware devices and screen buffers, clears areas of the screen before drawing, and clips views.

Reference

1436 questions
-1
votes
1 answer

installing PyUserInput on OS X

I was trying to install PyUserInput on os x El Capitan, but I couldn't manage to do so. In the git repository instructions it is written that Quartz and AppKit are needed, but I can't figure out how to install them. I would appreciate your help,…
omerhay95
  • 3
  • 1
-1
votes
1 answer

Check if an email address is valid in OSX SDK

I am building an app for Mac OS X that brings in email addresses from an Excel file. Is there any method in the SDK that would allow me to check if an email is valid, e.g. a Hard Bounce? Something similar to using ping but for emails?
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
-1
votes
1 answer

AutoSend NSSharingService: Email

I'm trying to use NSSharingService to compose a mail. I'm able to add recipients, body, subject and attachments but I can't seem to add a sender and autosend the email. Is there a way to add a sender and automatically send the email using…
cessmestreet
  • 2,298
  • 3
  • 22
  • 42
-2
votes
1 answer

NSView-based table view with auto layout grows, but does not shrink rows

I have a NSTableView in view-based mode (not cell-based) with usesAutomaticRowHeights=YES. The rows have dynamic height that might change at any time. This setup successfully grows table view rows (row content is never clipped), but table view rows…
-2
votes
1 answer

Swift NSAttributedString: kCTForegroundColorAttributeName vs NSAttributedString.Key.foregoundColor

I have a CFMutableAttributedString set with attributes of key kCTForegroundColorAttributeName and value of type CGColor. let attrString = NSMutableAttributedString(string: "foo bar") let range = CFRange(location:0,…
system64
  • 909
  • 1
  • 11
  • 27
-2
votes
1 answer

Change command line app icon programmatically

I've created a swift command line app for macOS (WITHOUT XCODE, just a simple .swift file), used to build a macOS installer. When I run the app with sudo swift install.swift, the app is opened with an icon with a terminal app design like…
Blaztt
  • 33
  • 1
  • 3
-2
votes
1 answer

"Initializer for conditional binding must have optional type, not 'string'" but what else in that situation?

"Initializer for conditional binding must have optional type, not 'string'. I tried sender.stringValue and sender.stringValue? but Xcode things its funny again. (Attribute Error Message above) extension MapViewController:…
Ezekiel
  • 91
  • 11
-3
votes
1 answer

NSMenu subclassing in Swift 4

What happens to be trivial task in Objective-C - (instancetype)initWithTitle:(NSString *)title { return [super initWithTitle:title]; //bool but_it_works_in_objective_c; } causes short-circuit errors with suggestions: only nil value…
3F71792A
  • 1
  • 1
-3
votes
1 answer

How does Apple build this animated first login screen?

When a new user is created, we see this animated window: (source: idanfe.com) I am interested in building a similar window in the new version of my app, which migrates old data into new data. Which objects is Apple using to animate the window?
fundidor
  • 207
  • 3
  • 12
-4
votes
1 answer

xcode secure text field how to get the password typed in there?

@IBOutlet weak var button: NSButton! @IBOutlet weak var password: NSSecureTextField! @IBAction func buttonclick(_ sender: Any) { if(password.text == "test"){ } } this said it didn't work or something now I want it to check if the password is…
D.D.Jong
  • 1
  • 4
1 2 3
95
96