Cocoa is Apple's application-development framework for macOS, consisting of Foundation, Application Kit, and Core Data. Use the "cocoa-touch" tag for iOS questions.

learn more…| top users | synonyms|cocoa jobs

0
votes
0answers
2 views

Hotspot in Windows cursor .cur loaded by NSImage?

According to the Cocoa Drawing Guide documentation for Images, NSImage can load a Windows cursor .cur file.But how do I obtain the hotspot needed for NSCursor - initWithImage:(NSImage *)newImage ...
0
votes
0answers
5 views

Cocoa UI IBAction call seems to corrupt NSTimer

I have a function:NSTimer *learnUSBTimer=nil;- (void)showUSBWindow:(id)sender {[self updateDeviceButton:@"Cancel"];[self hideDeviceClearButton:TRUE];[...
0
votes
0answers
9 views

How to load 16-bit images into Metal textures?

The recommended method of using MTKTextureLoader.newTexture doesn't work with 16-bit images. The named: version silently converts the image to 8-bit pixel formatWhile the cgImage: version ...
-1
votes
1answer
8 views

Apple Help Book – Linking styles and Scripts like

I wondering whether there are some starting of templates for Apple help book.As I am not a professional programmer, however, I have come across making apple help book. First of all, I was surprised ...
0
votes
0answers
13 views

Intercept keydown events to NSWindow given to a plugin

I am writing an audio plugin (VST) in Objective-C on OSX. My plugin gets loaded into an application and is given an NSWindow in which to add my own NSView. I need to be able to intercept keyboard ...
1
vote
0answers
8 views

Check if NSColorPanel is 'sampling'?

In NSColorPanel the user can click on the pipette symbol to sample a colour from anywhere on the screen.Our app uses popovers to ask for optional data (like color) that we hide once the user clicks ...
0
votes
0answers
7 views

Make WKWebView editable Cocoa

Sorry for such a basic question but could someone let me know how can I make WKWebView editable so that user can add contents/Images. I could not find anything with respect to Editable on WKWebView. ...
-1
votes
1answer
22 views

Xcode Project Setting for CGEventTap?

A while ago, I created a extremely simple Xcode project to test CGEventTap, and it works perfectly fine when I run from Xcode. The code is at the bottom.However, if I create a new project on Xcode, ...
0
votes
0answers
12 views

Metal texture / CGImage from data asset

I believe native reading of OpenEXR format is (unofficially) supported both on recent macOS and iOS versions: Is OpenEXR supported on iOS / macOS?I'd like to load an OpenEXR image to a Metal texture,...
-5
votes
0answers
35 views

Log in screen (cocoa swift) [on hold]

Using Xcode9.1 Cocoa Swift, I'm trying to create a login screen so once the user puts in the requirements and pushes the button a new screen will appear with the application. Right now I'm just trying ...
0
votes
0answers
8 views

Sketch plugin development, how get layers hierarchy

I have a function like this: function selectLayersOfType_inContainer( layerType, containerLayer ) {// Filter layers using NSPredicatevar scope=containerLayer.firstObject()....
-3
votes
0answers
17 views

I want to minimize/hide nswindow when nscolorwell open and again show when color choosing done. [on hold]

I want to minimize/hide nswindow when nscolorwell open and again show when color choosing done. i need it in swift4 code
0
votes
0answers
24 views

What's the easiest way to have an NSTextView backed by a char array?

Or anything, really, maybe a C++ class or a C struct. Ideally with minimal copying between NSString and the said type.Should I reimplement NSTextStorage or NSTextView? Should I implement ...
-1
votes
0answers
37 views

I am leaving the Mac App Store, so how can I advertise my Mac apps effectively outside the MAS? Which app directories can provide good traffic?

Now I plan to leave the app store. Why? The app store is a battlefield, a lot of competitors would post 1-star ratings to your apps and complaint about your apps, then you need to make changes, a lot ...
2
votes
0answers
33 views

How to correct “corrupt and unarchivable nib”?

I am writing a macOS app in Swift4. I'm targeting macOS 10.9, so I'm using xibs instead of storyboards.When I try to run and open the nib via showing the window, it logs an error:-[NSIBObjectData ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,