mac

Issues writing to serial port on MAC OSX using unistd.h in c

I am trying to write to a bluetooth device on MAC OSX using the unistd.h Linux functions in c. I am connecting fine and writing the first few bytes with success. When I try to write other commands to it (there are bytes added to the write buffer every 15ms), I don't see any results even though the write() function returns 1 (write succes...

Porting .NET C++ standalone to Mac

I need to give an estimate for porting a standalone program to a Mac from a .NET platform. I have all the source code which is in C++ and is both code I wrote and a modified version of GLUT/GLUI because the program uses OpenGL and GLUT/GLUI as a UI. I don't think the C++ code will be a problem or the OpenGL environment, please tell me ...

How to get the User ~/Library path in Java for the Mac OS

On the Mac OS, from what I understand you're suppose to store information in "/Library/Application Support/Your App Name" if the files are to be read by everyone. However when it comes to writing, this is an admin only folder. Therefore, if you want to write data, you need to store it to "~/Library/Application Support/Your App Name". No...

Programmatically Change System Network (Proxy) settings

Hello. Is there a way, from within a Cocoa application to change the system network settings (specifically, the proxy settings). I've found that there is a file called preferences.plist in /Library/Preferences/SystemConfiguration that has the settings I want, but I can't figure out how to get the system to process changes to this file ...

How to get repository for core-plot

I am not able to get the repository for core-plot. What I am doing is that I am typing this in the terminal: hg clone https://core-plot.googlecode.com/hg/ core-plot and this is what I get: Traceback (most recent call last): File "/usr/local/bin/hg", line 25, in mercurial.util.set_binary(fp) File "/Library/Python/2.5/site-packages...

Eclipse plugin doesn't work on Macs

I'm building a plugin in Eclipse 3.5 on Windows which is a text editor for a language that my group works with. I distributed it as a .jar and just had people place it in the dropins folder. The problem is it doesn't run on any of the Macs that my coworkers use, but it seems to work fine on PCs. When run on a Mac, the plugin is simply no...

Java 6 Update - Mac OS X application crash related to QuickTime libraries

I currently am looking at a bug related to an application crash when running on Mac OS X. The crash only seems to occur when using Java 6, with the Mac OS X 10.5 Update 1 (64 bit mode). The problem does not show up on 32bit Mac Java installs. From what I have read via google, the issue seems to be related to the fact that the applicatio...

How to customize NSTextField look (Font used, font size) in Cocoa ?

Hello everybody, I'm making a Cocoa application and I can't figure out how to do something. I want to make an NSTextField with a custom look like the one in Wallet : Wallet screenshot. I figured out how to change the NSTextField size but I don't know how to change the font and it size. I subclassed NSTextFieldCell like this but it ...

Be Alerted When SystemUIServer Restarts

Hi, I need to be able to be alerted either when SystemUIServer terminates, or when it launches, preferably terminates. The notification NSWorkspaceDidTerminateApplicationNotification isn't posted when launchd restarts it. Is there some way I can be alerted? --firen ...

How to play a mp3 file from within the Resources folder of my application ?

I am making an app that will play sound on events but I can't figure out how to access files from the ressources folder of the Application. Here is what I'm doing : NSSound *player = [[NSSound alloc] initWithContentsOfFile:@"Sound.mp3"] byReference:NO]; [player play]; But it's not working at all. If I put a full length path it wil...

Getting the speaker audio signal and then streaming it out

I am trying to build what I think is a basic app. Well, two apps one for windows and one for OS X. I would like to capture the audio signal that is playing (ie if the user is playing music out his/her speakers). Then take that signal and stream it out so another computer can "listen". The other computer would be Windows or OS X. An...

What's a good version control for a Mac environment?

I'm a Windows developer looking to do some Cocoa dev on a Mac. I'm familiar with Subversion, TFS, Sourcegear Vault, CVS and VSS in a Windows environment. What version control should I look at using in my new, unfamiliar Mac environment? I will be doing 95% of the development, with the other 5% coming from one or two other people. How...

How do you map mac fonts to Windows fonts

I need to display a file that comes from a mac on a Windows machine. The font name in the mac file is "Helvetica". Windows does not have Helvetica but it has "Arial" which is the close. However, if I pass "Helvetica" to a WPF control the font family is ignored. How can I get programmatically the closest font from "Helvetica" on Windo...

How can I recreate the ImageKit Picture Taker?

Hi, I'm trying to create a tool for jQuery which crops images. I know there is already a load of already. The difference with the one i'm trying to make is that i'd like it to act like the Picture Taker interface found in many mac applications like iChat and Adium. I'm stuck completly on how to do it. Can anyone give me any ideas? Pictu...

Maintaince of CoreData Application

If you change an anything (entity, relationship, type of attribute etc) in a CoreData model after it has shipped, what is the general process that you have to go through to get the user's store updated for your new model. ...

installing c++ boost on mac osx leopard -- port fails

I'm not much of a c++ programmer, just an end-user trying to install an existing project from source. One of the project dependencies is the boost library. When I tried to install boost on my osx 10.5.7 using "sudo port install boost", I got the following error message: ---> Building boost with target all Error: Target org.macports.bui...

rsync remote site with bash

Hello All Hope you can advise I want to use rsync to carry out my FTP transactions but with bash. How can I add the password to the rsync command. I have for example. rsync -r -update [email protected]:/public_html/ /var/www/domin.com/public_html Hope you can advise. Thank you in advance. ...

First steps to use XCode

Hey ladies and gents, I just got my OS X leopard VM booted :). As such I am now planning to learn how to use XCode and start developing on the apple platform. I have a visual studio background, and I can use unix (not a hardcore scripter but I know more than the average) If anyone could point me to a good tutorial in apple especially ...

How to get network adapter stats in linux/Mac OSX?

I'm looking for a way to get hold of network stats in C on Linux and MacOSX. Specifically, I need to monitor the number of bytes uploaded and downloaded from each network adapter on the system - I don't need to do packet inspection, or differentiate between protocols, just a 'total bytes' counter which I can poll at intervals would be fi...

CATextLayer outlined text

How do I draw outlined text using Core Animation layers? The stroke attributes of an NSAttributedString seem to get ignored by CATextLayer and I can't find a standard filter that I can apply to the layer that gives good results. Surely this should be easy? ...