osx

How to debug a Screensaver in OS X

I was wondering if there was any decent way, other than NSLog-ing just about everything - to properly debug a Screensaver app bundle in OS X? The "Screensaver" is a project type in XCode, but there's obviously no Build and Go debugging. Further, I've found that in fact my bundle is getting loaded in to the /System/Library/Framework...

Find Installed applications in cocoa

Hi, I am developing an application in cocoa.I need to check whether iTunes is installed or not in the machine.Is there any way to find the installed applications???? ...

Unable to install MySQL manuals to Mac

This question is based on the thread. I downloaded the manuals as the file "v5.1 (Maria) TGZ". I moved the file to /usr/share/man/. I could not access the manuals by man mysqlbug The .tar.gz -file has these files which do not include README comp_err.1 innochecksum.1 make_win_bin_dist.1 msql2mysql.1 my_print_defaults.1 myisam_ftdump....

How do I get the name of the active user via the command line in OS X?

How do I get the name of the active user via the command line in OS X? ...

Block Application access to network via a Cocoa API (LittleSnitch APIs)?

I am using OS X 10.5 and I am looking for a way to detect if an application attempts to access the Internet. At this point I would like to block the application if it matches a set of rules that I will define. There is the ipfw Unix command that I realise can be used to block access to certain ports, but that affects ALL applications. I...

Letter-sized Document truncated when printing from browser on Mac OS X

The bottom of the page is truncated when printed. (Approx 1/2 to 1"). This printing problem does not seem to be specific to Flash (printing certain PDFs also yields this problem), but that is where we found it. The problem does not occur in older versions of OS X, but does occur in the most recent versions (10.5.5 and up). Not sure whe...

Starting/stopping a launchd agent for all users with GUI sessions.

I need to be able to start/stop a per-session GUI agent from a root level daemon. Similar issues are discussed here, here and here. What I want to be able to do is basically for num in `ps ax | grep [s]bin/launchd | cut -c 1-5`; do if [ $num -ne 1 ]; then sudo launchctl bsexec $num launchctl (un)load -S Aqua /Libra...

Will a Mac Mini suffice for an iPhone Development machine?

So the past two clients I've been at, all the talk has been about creating an iPhone app, and I won't lie, I want to make one. Or at least learn how to make them. I've never owned a Mac, so I have no idea how their OS functions/works/performs, whatever. I'm a .NET Developer and build my own gaming rigs at home, but as far as Mac hardw...

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...

What software on Mac used to prototype user interface?

so, title will be it. ...

Mac OSX MySQL Update Stored Procedure

Good afternoon, I am attempting to run a stored procedure that updates records in MySQL 5.1 on Mac OSX 10.4.11. Here is a sample procedure: DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `TestUpd`() BEGIN UPDATE Addr SET eMail2 = 'test'; END $$ When I execute this procedure, I get the error, 'Error executing SQL ...

List of installed fonts OS X / C

I'm trying to programatically get a list of installed fonts in C or Python. I need to be able to do this on OS X, does anyone know how? ...

Why is it allowed to write to / on MacOSX as normal user?

Under MacOSX, I can create a file under root ("/") without having admin rights. Anyone has a clue why they implemented it that way? ...

How do I copy .app bundles with Ant on Mac OS X?

Hey guys, I just had a quick question about copying files on Mac os x with ant. I've written myself a great little build script for my iPhone development. The script copies the compiled .app files that are created from xcodebuild. Anyway, the ant command does not seem to work. It does not copy the .app file correctly. it copies the cont...

remove messy leading whitespace in VIM on OSX

Hi, I am copying code from website matplotlib and pasting into the vim editor in a terminal on OSX: [(http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.html)][1] While this works fine in bbedit: `from pylab import figure, show, rand from matplotlib.patches import Ellipse NUM = 250 ells = [Ellipse(xy=rand(2)*10...

Where is the code for the function under c in Screen's copy-mode?

This question is based on the thread. I am interested in the function under the button c because of my current interest in the similar function in the column detection of OS X S.Leopard's Preview. Where is the code for the function under c in Screen's copy-mode? ...

compiling c++ code using gnu/c getline() on mac osx?

...

What is the best client from Windows to Mac for VNC?

I have been trying different clients from Vista and I am not having a great experience with them. If I leave them sit for a while they stall and I have to close and reconnect. I have been using both TinyVNC and RealVNC and they both have this problem. I switched from TinyVNC to RealVNC and I get better refresh rates but it still stalls. ...

When porting Java code to ObjC, how best to represent checked exceptions?

I am working on porting a Java codebase to Cocoa/Objective-C for use on desktop Mac OS X. The Java code has lots and lots of methods with checked exceptions like: double asNumber() throws FooException { ... } What's the best way to represent these in Objective-C? Exceptions or error out-parameters? - (CGFloat)asNumber { ... ...

ld: duplicate symbol _dbg_char

Hi. Getting a linker error on osx (no errors on linux or fbsd for the same code): ld: duplicate symbol _dbg_char in .libs/liboekernel_la-OEK_get.o and .libs/liboekernel_la-OEK.o the 2 libs listed in the error are mine but the symbol isn't. c++flint confirms '_dbg_char' is in both libs but i'm not sure how to find where it comes from....