Data dodania Pytanie
2017-01-15 12:01 Input queue callback called but no data »
In an effort to start getting into macOS programming, I'm trying to make a simple program that would record audio from an input device (eg. the built-...
(1) odpowiedzi
2017-01-14 11:01 Querying graphics capabilities for deciding whether to apply GPU-intensive effects (through SpriteKit) »
I have a game written with SpriteKit which uses a SKEffectNode with blur effect to blur a set of sprites, one of which has a fairly large texture, and...
(1) odpowiedzi
2017-01-11 21:01 Osx NSTask / Process, combine standardError and standardOutput in one string while also having both separated »
I'm trying to get a separated standardError output and standardOutput string but I also need the full string. Following code will explain my case com...
(0) odpowiedzi
2017-01-08 18:01 How to access the Terminal's $PATH variable from within my mac app, it seems to uses a different $PATH »
I'm trying to make a mac app where the user can type in commands just like they would in the mac terminal, I got most of it working however I found ou...
(1) odpowiedzi
2017-01-07 20:01 Swift mac app, run terminal command without knowing the path (so it looks in every path in $PATH)? »
I'm trying to run terminal commands from my swift mac app, i want the users to enter any command like they would in the terminal without having to spe...
(1) odpowiedzi
2017-01-04 23:01 Using NSTreeController with NSOutlineView »
I'm trying (unsuccessfully) to build a TreeController-controlled NSOutlineView. I've gone through a bunch of tutorials, but they all pre-load the data...
(1) odpowiedzi
2017-01-01 14:01 Make a thread that continues when program is stopped »
Is it possible to make a thread that continues when the program is stopped? When I first heard of daemonic threads, I thought that might be what I wa...
(0) odpowiedzi
2016-12-31 20:12 schedule code to execute at some time later »
How can I schedule some code to be executed at a certain time later? I tried: import time import datetime time.sleep(420) print(datetime.datetime.n...
(4) odpowiedzi
2016-12-31 18:12 class attribute doesn't get assigned correctly »
I am trying to loop an alarm (in the file beep.wav) and show an alert. Once the alert is closed, I want to instantly stop the alarm. I am attempting...
(2) odpowiedzi
2016-12-28 19:12 Why do these ARC objects behave inconsistently? »
Here's an Objective-C program for OS X that uses ARC - you can build it with cc -fobjc-arc -o objc_arc_test objc_arc_test.m or something. It creates t...
(1) odpowiedzi
2016-12-25 00:12 Apple Metal without Interface Builder »
I am racking my brain on this one. I've been trying to duplicate the initial metal project provided by Apple but without using interface builder at ...
(1) odpowiedzi
2016-12-24 18:12 File size limit for read()? »
I'm running into a problem while trying to load large files using Python 3.5. Using read() with no arguments sometimes gave an OSError: Invalid argume...
(1) odpowiedzi
2016-12-18 01:12 How to get information about a connected/paired Bluetooth device in Java? »
I'm a beginner with Bluetooth. I'm trying to use Bluecove with Java. I would like to communicate with a device which is already connected/paired to my...
(1) odpowiedzi
2016-12-16 23:12 Getting "cat: /release: No such file or directory" when running scala »
I tried installing Scala 2.12.1 on my Mac (El Capitan) via Homebrew and also by downloading the binaries at https://www.scala-lang.org/download/. In ...
(1) odpowiedzi
2016-12-12 23:12 How to update the helper tool in a macOS application that does privileges escalation? »
I am working with privileges escalation and modern ways to achieve this in a macOS application. While testing, I have noticed that the privileged help...
(0) odpowiedzi
2016-12-11 12:12 How to lock screen with SandBox Entitlement under MacOs »
I use this part of Objective-c source code to lock the screen under MacOs Sierra. NSBundle *bundle = [NSBundle bundleWithPath:@"/Applications/Utiliti...
(0) odpowiedzi
2016-12-11 11:12 catch return value after execute external task using AuthorizationExecuteWithPrivileges »
I was managed to execute an external task on a different process (child proc) using the method AuthorizationExecuteWithPrivileges in the following man...
(1) odpowiedzi
2016-12-08 12:12 USB device send/receive data »
I have implemented function to detect USB device. It works and now i need to send/read data. I started look over a lot of obj-c sources and found on...
(1) odpowiedzi
2016-12-05 19:12 Metal on macOS: Visibility testing behaving incorrectly »
In Metal when using the visibility result feature (by invoking setVisibilityResultMode on a command encoder), I am using the MTLVisibilityResultModeBo...
(2) odpowiedzi
2016-12-04 11:12 dispatch_group_wait waits forever »
I'm studying how dispatch_async() works. I tried this snippet in main(): typedef void(^VoidBlock)(); VoidBlock aBlock = ^{ NSLog(@"do work in m...
(2) odpowiedzi
2016-12-03 13:12 Manipulate (hide) third-party menu bar icons on macOS 10.10+ »
I would like to programmatically manipulate the menu bar icons in macOS, ideally supporting Yosemite, El Capitan and Sierra, in Swift. What I am mostl...
(0) odpowiedzi
2016-12-01 08:12 Constrain mouse movement to region in OS X without jitter »
I would like to constrain mouse movement to a specific rectangular region of the screen in OS X 10.11. I modified some code from MouseTools (below) to...
(1) odpowiedzi
2016-11-30 08:11 Issue with NSSearchField ordering »
I have Two controls in a view, one NSSearchField and one NSDatePicker. I want to display the date picker above the search field, but always the search...
(0) odpowiedzi
2016-11-27 20:11 How to figure out, what slows down docker? »
My problem is the following - I have Docker on OSX with containers containing Redis, NginX, PHP 7 and Unison. Mapped to php-container I have volume wi...
(2) odpowiedzi
2016-11-26 18:11 Detect current input language »
I am building an app which allows users to check the local time in any place around the world. The information is being fetched using Google APIs and ...
(1) odpowiedzi
2016-11-26 11:11 Re-open Finder windows after programmatic termination »
I am developing a utility that needs to restart the Finder in order for changes to appear. I use NSRunningApplication's terminate function to ensure ...
(1) odpowiedzi
2016-11-24 20:11 Metal kernels not behaving properly on the new MacBook Pro (late 2016) GPUs »
I'm working on macOS project that uses Swift and Metal for image processing on the GPU. Last week, I received my new 15-inch MacBook Pro (late 2016) a...
(1) odpowiedzi
2016-11-23 09:11 Update NSTouchBar on the fly to add/remove items programmatically »
I'm currently implementing the NSTouchBar api to my macOS application. At this moment, the only touch bar I have has the main View Controller as its ...
(2) odpowiedzi
2016-11-23 00:11 Postgres 9.5.3 JSON fields comparing dates with operators weird behavior on Mac OSX 10 »
I'm having a problem on both of my Mac machines, but not on my Linux machines. Using date comparison operators like this does not work on my Mac: # R...
(1) odpowiedzi
2016-11-22 14:11 GIF stops animating while gaming mouse is moving »
While I move my gaming mouse inside a javax.swing.JFrame, all animated GIFs (javax.swing.ImageIcon inside a javax.swing.JLabel) stops animating until ...
(1) odpowiedzi
2016-11-19 08:11 Disable vibrancy for every NSView »
Inside an NSPopover, some subviews (e.g., labels, push buttons) have vibrancy enabled automatically. This makes my app looks very bad when the content...
(1) odpowiedzi
2016-11-18 14:11 Determine if Finder can be safely killed »
I am currently developing a utility program that requires the Finder to be restarted after some changes are made to the user's defaults. To be on the...
(1) odpowiedzi
2016-11-16 23:11 how do I execute a .net core console app on mac os »
I just installed Visual studio for MAC, and created the hello world console app when pressing play in the bottom window (application output), I can se...
(1) odpowiedzi
2016-11-13 18:11 Build .NET Core targeting both Core and Full .NET on MAC »
Can I build a .NET Core app targeting both .NET Core and Full .NET by skipping Full .NET build and run? I mean that I can build for both on Windows bu...
(1) odpowiedzi
2016-11-12 13:11 Linking error for mixed macOs app with static libs (swift, objc, c++) »
I have two static libraries and one macOs App (all under latest XCode 8.1). 1) First lib (A), is ObjC++ (mixed objc and c++/stl) 2) Second (B) is pu...
(1) odpowiedzi