OS X is the desktop operating system from Apple Inc. It was the successor to Mac OS 9 and here the 'X' means 10. OS X is based upon the NeXTSTEP/OPENSTEP OSes developed in the 1980s and 1990s by NeXT Inc., which Apple purchased in 1996.
0
votes
0answers
3 views
Configuring sublime text build system to use shell script
I have a shell script with various functions defined and all accessible via the terminal by including the following line in bash_profile: source ~/hcom-env/conf/sys/hcom-profile
However when I try to ...
1
vote
1answer
11 views
How to simulate process/daemon crash on OSX?
How can I invoke/simulate process/daemon crash on OSX and as result to receive crash report in
/Library/Logs/DiagnosticRepors
(e.g. opendirectoryd_2013-06-11-125032_macmini61.crash)?
I tried ...
0
votes
0answers
8 views
How to enable vsync in PyOpengl (+Glut)
I'm doing some animations using PyOpenGL, using GLUT for the window handling, on OS X if that makes a difference. I'm using double buffering, but even so I get horrible tearing, and the speed of my ...
0
votes
1answer
13 views
OSX/ObjectiveC: List all the objects created in the heap by my app
Is it possible to list all the objects that lives in the heap and have been created by my app?
I think it's possible, Instruments do something like this.
0
votes
0answers
13 views
Hosting Web App Locally on Mac
I have written a simple chat web app using .net and it all works fine. Now I have written a small iphone app that is meant to interact with the web app. The problem is I dont know what to do in terms ...
1
vote
0answers
10 views
virtualenv no such file or directory
I am using python2.7 on Mac OS 10.8 in the version installed by homebrew. As I had some issues with vtk, I unlinked python (brew unlink python) and linked it again (brew link python). It seems that ...
0
votes
0answers
19 views
Using regular expressions for syntax highlight
I have a piece of code that assigns attributes to an NSAttributedString depending on whether certain keywords are present in the string or not. In other words, syntax highlight.
To find if a certain ...
1
vote
2answers
29 views
OS X Java maximum threads per process
Running this code
for (int i = 0; i < 4000; i++) {
new Thread(new Runnable() {
@Override
public void run() {
try {
...
0
votes
0answers
6 views
Call to CFURLCreateFromFileSystemRepresentation sometimes fails
I have an application that loads in a bundle and in doing so I call CFURLCreateFromFileSystemRepresentation before CFBundleCreate: -
bundlePackageURL = CFURLCreateFromFileSystemRepresentation(
...
0
votes
0answers
4 views
Probems saving PDF with PDF-kit on Mac OS X
I'm new to the mac development.
I'm using XCode 4.6.2 to build a command line tool app which uses Foundation + Quartz frameworks.
Basically, the idea is to parse PDFDocument pages and then split it ...
0
votes
1answer
24 views
Change NSComboBox drop down menu background color
I am coming from iOS/Android programming background and working on my first MAC application. I am using an NSComboBox to list some item that user can choose but having some trouble setting the ...
2
votes
2answers
31 views
Substring out of bounds exception with NSMakeRange
When looping through, making a substring of every letter in a NSString, this exception is thrown:
-[__NSCFString substringWithRange:]: Range or index out of bounds
Code:
- (void) ...
0
votes
0answers
10 views
automatic clicks when mouse hover over an item on Mac. How to disable it? [migrated]
A few days ago, my Mac starts behaving strange.
Whenever I move the mouse cursor over something, it automatically clicks the item.
It's driving me nuts, cause a lot of my tasks are bothered by this.
...
-1
votes
0answers
6 views
How to get [open with] dialog when open unknown file type in Mac
Here's what I get from searching:
Java: Open a file (Windows + Mac)
But it might not enough for me. The above solution only deals with the registed file extension. My requirement needs deal with all ...
0
votes
1answer
25 views
How do I use pbcopy in a bash function? Can it be scripted?
I often find myself copying history commands to my clipboard using this:
echo !123 | pbcopy
This works fine from the Terminal. Assuming !123 = cd .., it looks something like this:
$ echo !123 | ...