NSBezierPath: creating a “curved” square?

I'd like to create an NSBezierPath that represents a "curved" or "bloated" square like this: I'm struggling to c...

Can't append path component to the temporary directory path in Swift?

I'm using NSURLDownload to download a zip file in a Mac temporary folder. Here's the code : func function () { ...

Why does the url in the request of a decidePolicyForNavigationAction return http://localhost:8888/%E2%80%9Chttp://example.com%E2%80%9D?

Good morning SO, I have a mac webView (Not iOS UIWebView) that loads with url pointing to http://localhost:8888. Th...

Compiler error: “initializer element is not a compile-time constant”?

When compiling this code, I get the error "initializer element is not a compile-time constant". Can anyone explain w...

Swift protocols: method does not override any method from its superclass?

Since Xcode 6 still has a lots of bugs with Swift, I'm not sure is it one or I'm missing something. My class adopts ...

Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error??

I'm trying to link a UILabel with an IBOutlet created in my class. My application is crashing with the following er...

Where is PackageMaker? How can i make package installer??

I'm making Development tool which needs Git, Heroku, Python, Ruby. So I need package installer to check and install...

How to save a NSImage as a new file?

How can I save a NSImage as a new file (png, jpg, ...) in a certain directory? ...

What is NSBundle and mainBundle in Objective-C??

Regarding Objective-C on iOS application, I read some sample program in the Apple developer website and I found that...

Why does the window background remain black in fullscreen??

I have created a window without title by- override func windowDidLoad() { super.windowDidLoad() self.windo...

'Class FIFinderSyncExtensionHost is implemented in both …' warning in Xcode since update to macOS High Sierra?

I am getting the following warning in the Xcode console while running (not compiling) my application since updating ...

@synthesize vs @dynamic, what are the differences??

What are the differences between implementing a @property with @dynamic or @synthesize? ...

Get iTunes'/Finder's default album art image?

Part of my application's functionality is that it gets the currently playing iTunes track's album art (using Scripti...

Constants in Objective-C?

I'm developing a Cocoa application, and I'm using constant NSStrings as ways to store key names for my preferences. ...

How do I create delegates in Objective-C??

I know how delegates work, and I know how I can use them. But how do I create them? ...