I moved from Windows to Mac and now I'm experiencing a problem with the file input/output classes: ifstream & ofstream.
In Windows when you run with g++/Code Blocks
ofstream out("output.txt");
out << "TEST";
out.close();
A new file "output.txt" will be created in the same directory.
However in MAC OS X, this file is created in my h...
In order to install Python XMP Toolkit,
I
need to install Exempi on my Mac, but doing this is becoming a real nightmare...
After a lot of trouble, i finally made it with boost, and had the fantastic
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/usr/loc...
hello,
We are working on a stylish screensaver that we would like to publish on the upcoming mac app store. Do you think it will be possible to release a screensaver? We reviewed the draft guidelines but still not sure about it.
Thanks, Renaud
...
Possible Duplicate:
Need guidance on alternative JVMs for Apple OS X
So that's it, Apple may not be producing a JVM themselves nor shipping it with OS X anymore:
http://www.infoq.com/news/2010/10/apple-deprecates-java
We've got a huge Java application running on Windows, Linux and OS X (and OS X is a big part of our [rich] u...
Is there any way of adding sections to an already-linked executable?
I'm trying to code-sign an OS X executable, based on the Apple instructions. These include the instruction to create a suitable section in the binary to be signed, by adding arguments to the linker options:
-sectcreate __TEXT __info_plist Info.plist_path
But: The e...
On a MAC OS X machine, I am using FBO, depth RBO and texture RBO with freeglut to render a 3D scene to FBO and doing a render to texture. All using standard glut functions and glutMainLoop at the end.
I am using glReadPixels to read from the FBO. I can see that the pixels are being read correctly.
However When I hide the glut window us...
I use QTKit with a QTCaptureMovieFileOutput to capture my iSight Cam. Below you see a short excerpt of the code, which sets the compression options:
while ((connection = [connectionEnumerator nextObject])) {
NSString *mediaType = [connection mediaType];
QTCompressionOptions *compressionOptions = nil;
if ([mediaTy...
I am tracking a very tough memory leak (or more likely abandoned memory) situation. I do the following:
1) start my application
2) get to a point where the application will show the leak
3) start instruments using the 'allocations' choice
4) attach to my process and start recording
5) take an initial heapshot
6) take an initial snapsh...
Hello all,
Following up on this ( http://stackoverflow.com/questions/3860256/display-system-keyboard-mac-application ) question, the keyboard is coming up fine, but if my application is in fullscreen mode, the keyboard launches, but remains in the background. How do I get around this? Any help is much appreciated!
Thanks,
Teja
...
Since I've migrated from Leopard to Snow Leopard I get
$ ruby script/server
Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again: http://rubygems.rubyforge.org
the only way to make it work is:
$ /usr/bin/ruby script/server
=> Booting Mongrel
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
So I guess s...
How can I monitor a directory, and send an email whenever a new file is created?
I currently have a script running daily which uses find to search for all files in a directory with a last modified date newer than an empty timestamp file:
#!/bin/bash
folderToWatch="/Path/to/files"
files=files.$$
find $folderToWatch/* -newer timestamp -p...
In OS X, you turn on and off a web proxy from System Preferences > Network > Proxies, by checking Web Proxy (HTTP) and designating the Web Proxy Server etc. and by clicking OK and then "Apply". This is way too many steps. Is there a way to do this all from the command line and a shell script?
...
In the latest ReleaseNote, Apple deprecates Java:
I think, this will lead companies to switch from Apple to PC. Crossplattform Development will be much complicated in the future and a lot of cool applications will vanish from the OS X platform. I hope, the OnlinePetition of OpenJDK will be successfull.
What do you think? Is it worth to...
Does SWT support OS-X-specific unified toolbars or button bars?
...
Since a while a copy action (command-c) adds the current selection to the clipboard instead of replacing the clipboard. This mostly happens while coding in TextMate but also happened in CSSedit. The action makes a distinct "click" sound. This does not happen every time I do a copy and it drives me insane. I've searched the interwebs but ...
Hi,
I have some shared/dynamic libraries installed in a sandbox directory. I'm building some applications which link agains the libraries. I'm running into what appears to be a difference between OSX and Linux in this regard and I'm not sure what the (best) solution is.
On OSX the location of library itself is recorded into the library...
hi guys,
im searching for a complete command line tool or even better a python wrapper to manipulate and retrieve image metadata.
i tried pyexiv2 which is very nice but i cant register a new namespace like 'XMP.imageapp.uuid' (maybe im missing something and i would be glad to hear a solution for that.)
with the command line tool exiv2...
I am using Eclipse 3.5 JEE 64 bit on OS X Snow Leopard.
Was wondering how the .classpath file's tag's order gets changed everytime I run a standard Ant build script.
When I manually change the build path order like this (via Eclipse):
Right click on project in Project Explorer.
A context menu opens up
Go to Build Path
Configure Buil...
I have a C# application. Currently all modules are written in .NET 2 and it uses some executables that have linux ports. So I was wondering what toolkit should I use on Windows and MacOS to compile it max easy on both? On Windows Some guys told me that on Windows I can use WinForms, but on Mac I must use MonoMac, but the transition is ha...
Is SWT capable of showing an NSSheet like Quaqua simulates it using Swing?
...