Data dodania Pytanie
2017-03-06 09:03 Spotlight for Help in localized Java Swing applications on macOS »
In Java Swing applications on macOS, Cocoa automatically binds a search field called Spotlight for Help to the first menu labelled “Help” in a fra...
(1) odpowiedzi
2017-03-03 07:03 Selenium chrome and safari WebDriver “find_element_by_xpath” on WebElement »
I have been trying to make my code work on chrome (Windows 7), and it definitely worked on safari running OSx Here's the code for OSx: import ti...
(0) odpowiedzi
2017-02-27 03:02 Get the position of a row from within the visible tableView not the whole tableView »
Simply put- I have an NSTableView with a lot of rows. Only about 20 are visible with the rest only visible with scrolling. I know how to get the r...
(1) odpowiedzi
2017-02-24 20:02 Blurry Ellipse in Chrome on Mac OS »
I have been trying to create a background graphic with huge overlapping ellipse shapes using html&css only. The problem: In Chrome, a huge ellip...
(0) odpowiedzi
2017-02-20 13:02 How to restart postgresql on OS X? »
Can't find how to restart postgresql on OS X using command line in order to apply changes in pg_hba.conf. I'v tried various command from web and docs....
(2) odpowiedzi
2017-02-13 22:02 Mac OS webview random crash »
I am allowing the users of my app to login via facebook on mac app. I have loaded the facebook login page on webview, asked users permission, getting ...
(0) odpowiedzi
2017-02-10 01:02 gem install libv8 -v '5.3.332.38.1' ... Error installing libv8: ERROR: Failed to build gem native extension »
Any ideas/suggestions? **** Further update:**** 2.3.1 agxxx-xxxight 2290-fix-claim-button % ruby -e 'puts Gem::Platform.local' x86_64-darwin-13 I h...
(1) odpowiedzi
2017-02-04 16:02 Connecting AUNode Effects as type Send instead of Insert »
I have an audio graph with a chain of effects, but they are connected like Insert. AUGraphConnectNodeInput (processingGraph, mixerNode, 0, reverbNod...
(0) odpowiedzi
2017-02-03 20:02 Can Applescript or Python give me the Fully Qualified Path to a local file? »
UPDATE: I guess what I really need to be able to do is to determine the Volume Name of the Boot Drive under Mac OS. As an explanation of what I mean ...
(1) odpowiedzi
2017-01-28 11:01 How to simulate mouse click from Mac App to other Application »
I am trying to simulate mouse click on iphone simulator from macos App for that I am using CGEvents . the process id is 33554 for iPhone simulator ...
(1) odpowiedzi
2017-01-25 21:01 Coldfusion 11, standalone server, SSL »
I am running CF11 developer edition using the standalone (tomcat) server on Mac OSX. I need to configure it so that it serves sites over SSL. So far ...
(1) odpowiedzi
2017-01-21 15:01 Mac OS X XPC as IPC between two applications »
I have a windowed application and windowless helper, sitting inside the app bundle, and working as login item. App can start and stop the helper, ever...
(0) odpowiedzi
2017-01-20 16:01 how to detect if app was launched from xcode? »
how to detect if my app was launched from xcode after compilation or from package bundle downloaded from itunes? The code below does not seem to work...
(2) odpowiedzi
2017-01-20 04:01 CoreAudio: change sample rate of microphone and get data in a callback? »
This is my first attempt at using CoreAudio, but my goal is to capture microphone data, resample it to a new sample rate, and then capture the raw 16-...
(1) odpowiedzi
2017-01-18 08:01 Mac OSX App - How do you make a "Docking window"? »
I'm building an app for Mac OSX in Objective C, and I'm wondering if there's any built in support for "docking" behavior. What I mean by this is havin...
(1) odpowiedzi
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