mac

speed up Eclipse on OSX

Trying to work with Eclipse for Android (ADT plugin) development at my iMac (2.4Ghz, 4Gb RAM) and it's very slow (Eclipse Galileo SR2 x64). I know about eclipse.ini tricks and make some changes like: -XX:MaxPermSize=256m -Xms256m -Xmx1024m -XX:+UseCompressedOops -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC And use Java...

Fixed Height NSTableView, Avoid Scrolling

I have an NSTableView that has a very small fixed number of rows. When I create an NSTableView in Interface Builder, the NSTableView is contained within an NSScrollView. I have not found a way to make the table exist outside the context of a scroll view. Since the table only has a small number of rows, I don't want it to scroll. I wa...

Adding audio channel using ffmpeg

Hi all, I am working on ffmpeg and trying to add a audio stream on the fly. I am using AudioQueues and I get raw audio buffer. I am encoding audio with linear PCM and hence the audio I get will be of raw format, which I know ffmpeg does accept it. But I cannot figure out how. I have looked into AVStream, where in we have to create a new...

Silverlight 3 - PlatformKeyCode for Comma on MAC

Hi, Can someone help me with the platformKeyCode for comma and decimal (but tot the one from Num Lock) on MAC? I read here the reasons why the comma and the decimal point are not in the Keys enum from System.Windows.Input.Key, but I will need them for standard keyboards. http://blogs.msdn.com/nickkramer/archive/2009/01/23/why-is-the-s...

Converting SVN to Mercurial on Mac with working python binding doesn't work

Hi, I try to convert a local SCN repository (with all its history) to Mercurial. I am working on a Mac (10.6.2). Therefore, I am using Macports as package management tool. I started the conversion with: hg convert file:// ´pwd´/calebsvn/ The result is, that it starts to work fine, but after a while, it stops. That is the output: in...

Python's AppKit and ObjectiveC Delegates

AppKit allows Python programs on a Mac to use ObjectiveC classes. I am not very familiar with ObjectiveC, but I want to access the NSSound class using AppKit in order to create an audio player. My player should perform some action, such as loading the next item from the playlist, when the current audio finishes playing. There is a metho...

Simulating key press events in Mac OSX

Hi, I'm writing an app where I need to simulate key press events on a mac, given a code that represents each key. It seems I need to use the CGEventCreateKeyboardEvent function to create the event. The problem is that this function needs a mac keycode, and what I have is a code that represents the specific key. So, for example, I reciev...

Plot Title/Annotation

Hello, I want to add a title to my graph that gives a short description or name about the plot. For example, I have a table with a list of products and my graph shows how much those products cost. There should be a label/annotation superimposed on the graph that gives the name of the product. ...

Fog drawing using Core Graphics

I know that OpenGL has functionality that allow fog drawing. But, how to draw fog (smoke) using Core Graphics? Is this hard task? And, what concepts for implementing this task? ...

On Mac OS X in C++ on a 64-bit CPU, is there a type that is 64 bits?

I can't use "long long"; what should I be using? ...

Building XUL app a-la SongBird

Hi, I've started exploring XUL Runner as a potential tool for an upcoming app. I can get some good examples running using the command line xulrunner-bin myapp. How can compile it all in a native looking application, like SongBird does. I understand SongBird packages the entire xul runtime with it, and I'm happy with that. I'm just ...

Are Subversion 1.6 & Xcode 3.2 compatible?

Trying to get Xcode to work with Subversion server. Server: Subversion upgraded to 1.6.9 (Mac OS X Leopard 10.5.8) Client: Xcode 3.2.1 (Snow Leopard 10.6.2 with Subversion 1.6.5 though not sure that matters) Repository on server is setup and working fine via command line. However, I get an error when trying to create the Repository...

Vertical slider in cocoa application menulet?

I would like to add a vertical slider to my cocoa menulet application. Just like the vertical slider in the system volume menulet. How do I add this using Interface Builder? And if not with Interface Builder then how? ...

How can i add third party framework to my cocoa project

I want to add third party framework "log4Cocoa" to my cocoa application. I followed the steps to add the framework and created "Copy Files" phase as well. Project is getting build without any error. Problem occurs when i try to run the application i get error saying "Data Formatters temporarily unavailable, will re-try after a 'continue'...

CGPostEvent not working on Spotlight search result list drop down

Hi All, I am using CGEventPost() to post mouse events on my Leopard and Snow Leopard. I am doing this from a remote application, just live VNC viewer. Every thing works fine except the case when I try to launch any application after searching it in Spotlight. Remotely when I try to Launch any application after searching it in spotlight,...

How to set timeout in mysql c++ connector

I am using c++ connector to connect to MySQL server. When server is offline or in sleep,the statement execute method takes a while to detect the connection problem. Is there a method or variable to control the waiting timeout period in client? Regards Devara Gudda ...

Recording audio on Mac

Hi I am developing an application which access my audio input device and record audio from my microphone. Here when i am pressing START button it have to record audio from microphone and have to stop recording when pressing STOP button. My device is Lynx-AES16 and i got driver from there site. In windows i am accessing the machine(Lyn...

Help with using Xcode

So, I'm using Xcode to program with C++. I want to access the C++ tool but I'm having this problem. This is what it looks like when opening a new project. Only for me, I don't have the 'Command Line Utility' option at the end. How can I get the 'Command Line Utility' option to be available. I need it to access the C++ tool. Please...

Opening a LWJGL window from a SWT app on Mac

I have a SWT app that opens a OpenGL window (using the LWJGL library) after a button is pressed. It is supposed to close it's main SWT window and open a new one with an OpenGL context. Works fine on Windows. On Mac, I get this error: 2010-03-05 02:28:25.315 java[1315:a07] [Java CocoaComponent compatibility mode]: Enabled 2010-03-05 02:2...

Bundles and dylib lookups

My .app packages looks like this: MyApp.app/ Contents/ MacOS/ MyApp libA.dylib libB.dylib libC.dylib PlugIns/ PlugIn1.bundle/ ...bundle contents PlugIn2.bundle/ ...bundle contents Both PlugIn1.bundle and PlugIn2....