osx

how to detect network event in cocoa osx.

Is it possible to make sure my thread reacts on whenever there is network available ? Basically my thread should automatically get event that network is available and perform certain task. Any help will be appreciated. ...

How can JVM arguments be passed to apps started through java webstart in MacOS?

We have a application which is triggered from browser. This application consumes around 800 mb of memory. This works perfectly when invoked from any browsers in windows OS. The same application when triggered from MacOS throws an out of memory exception which occurs when the application is short of memory. Is there any way to increase th...

XAMPP default folder on OSX

Getting Started manual says I can put my files in /Applications/XAMPP/htdocs/ folder and in /Sites/ folder, but when I put files in /Sites folder it gives me this error: Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. ...

How do I pipe in FileMerge as a diff tool with git on OSX?

I'm new to git, on OSX, using it via command line. I come from the world of Tortoise SVN and Beyond Compare on Windows. I want to be able to pipe in diffs to happen via FileMerge which I have installed already. I was able to do this with TextMate simply by using: git diff | mate But I'm not sure how to get that set up so I can use ...

Ivar definitions show 'long' type encoding as 'long long' type encoding

I've found what I think may be a bug with Ivar and Objective-C runtime. I'm using XCode 3.2.1 and associated libraries, developing a 64 bit app on X86_64 (MacBook Pro). Where I would expect the type encoding for the following "longVal" to be 'l', the Ivar encoding is showing a 'q' (which is a 'long long'). Anyone else seeing this? Simp...

What changes in Core Data after a save?

I have a Core Data based mac application that is working perfectly well until I save a file. When I save a file it seems like something changes in core data because my original fetch request no longer fetches anything. This is the fetch request that works before saving but returns an empty array after saving. NSEntityDescription *outp...

Qt SDk 4.6.2 on mac os x: invoke ffmpeg ??

Hello, I am writing an FFmpeg frontend in Qt & testing it on linux, windows & Mac. (FFmpeg is a popular command line tool for video operations) My project is working well on Linux & windows but I cannot invoke FFmpeg on Mac! I have compiled it from svn source on Mac & I have ensured that it is working properly by running it in Mac ter...

Conditionally overriding a system method via categories in Objective-C?

Hi Is there a way to provide a method implementation (that bears the exact same name of a method defined by the framework) only when the method isn't already defined in the system? For example method [NSSomeClass someMethod:] exists only in Mac OS X 10.6 and if my app runs in 10.5, I will provide that method's definition in a category....

Is OSCompareAndSwap (Mac OS X) equivalent to CMPXCHG8B?

Is OSCompareAndSwap (Mac OS X) equivalent to CMPXCHG8B? ...

Is OSCompareAndSwap is immune to ABA problem like CMPXCHG8B?

Is OSCompareAndSwap is immune to ABA problem like CMPXCHG8B? ...

Listening to mac keyboard play/pause events

Some mac apps, like iTunes and Spotify, react to the play/pause/next/previous buttons on some Apple keyboards. Presumably they're tapping into some sort of NSNotification, how can I do the same? ...

Reverse Geocoding/MapKit on OSX?

Hi, the iPhone SDK provides with MapKit a simple solution for maps und reverse geocoding without any additional costs. Does anyone know if there is a similar Framework for Cocoa on OSX? I know that google maps is capable of that but as far as I know and understand I have to pay while using google maps in a commercial application? Thank...

Django/PIL Error - Caught an exception while rendering: The _imagingft C module is not installed

I'm trying to run a webapp/site on my machine, it's running on OSX 10.6.2 and I'm having some problems: Caught an exeption while rending: The _imagingft C module is not installed Doing import _imagingft in python gives me this: >>> import _imagingft Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: ...

Anyone realize success using Apple Mac OS 10.6 and Parallels 5 for a Visual Studio Dev machine?

Greetings my wonderful StackOverflow family :) I grew up using Windows and switched to OSX as a Computer Science major in College. I've recently started my first real software developer job, and have a ThinkPad and Windows XP for developing ASP.NET / MS SQL applications (Visual Studio 2008). Question: Basically, I am wondering if any...

glCreateShaderObjectARB( GL_FRAGMENT_SHADER_ARB ); crashes !

Hello there, I have an iMac with ATI Radeon 2600HD which supports Fragment_shader_arb. But whenever I use that function, it crashes the program. Ironically, it works on a windows installation in the same machine without any problems. I'm running OS X 10.6.2; Can anyone please help me out! P.S. Vertex shaders work fine without any prob...

Alt-Insert on a macbook pro keyboard over an RDC connection

How do you send alt-insert (resharper 'generate' keyboard shortcut) over an RDC connection from a macbook pro keyboard? I'm using CoRD as my RDC client if that matters. I've seen fn+m and fn+enter online as suggestions for the insert key, but neither seems to work for me. ...

Eclispe RCP SWT menus for Windows and Mac OS

Hi, how do I configure an Eclipse RCP command style menu to match the different menu structures on Windows and on Mac OS? Mac OS X menu example http://images.apple.com/macosx/refinements/images/services_menu_20090902.jpg Windows menu example http://www.flamingpear.com/images/psp8menu.gif In the example you see, the differences in the...

Running applictions via ruby and multi-core support? (OSX)

Hi All, I'm looking for some tutorials/resources/tips that will show me how to run applications via a ruby script. I have several small tools that we use in our day to day operations that I want to manage their tasks in one ruby script. Basically what I'm trying to do is: run app via ruby script. (wait for result) get result code ...

I'v installed NetBeans 6.8 on my MacOS X MacBook and the logs say it cannot be run, any ideas?

I've installed NetBeans 6.8 on my MacBook, and the installation results indicated success. However, every single time I attempt to run the application is shuts down. I monitored the process and noticed the following entries in the console that imply the application cannot be found? 3/19/10 10:20:20 PM [0x0-0x22022].org.netbeans.ide.b...

How does 64 bit code work on OS-X 10.5?

I initially thought that 64 bit instructions would not work on OS-X 10.5. I wrote a little test program and compiled it with GCC -m64. I used long long for my 64 bit integers. The assembly instructions used look like they are 64 bit. eg. imultq and movq 8(%rbp),%rax. I seems to work. I am only using printf to display the 64 bit value...