osx

How to find file that is missing a required string?

On my OS X command line, I would like to find all files ending in .per that are missing the string 'connection_id'. How do I go about doing this. Finding the files that have a given string is easy but am not sure how to do this if the string is missing. Thanks! ...

Capture video from camera in Mac OS X

How I can filter video stream from camera in MacOS X. I write quicktime sequence grabber channel component, but it`s work only if app used SG API. If app used QTKit Capture the component is not worked. Somebody know how I can implement it? ...

Where are xxx$UNIX2003 functions defined in osx?

I have an osx executable that runs succesfully. When I run nm mono | grep UNIX on it, I get these results: U _accept$UNIX2003 U _bind$UNIX2003 U _closedir$UNIX2003 U _connect$UNIX2003 U _fwrite$UNIX2003 U _getpeername$UNIX2003 U _getsockname$UNIX2003 U _listen$UNIX2003 U _mmap$UNIX2003 ...

How to change default/preference for ObjC method on MacOSX?

MacOSX 10.6 has a method setWantsRestingTouches with a default of No, but I'd like to somehow change the default to YES. (Otherwise, I'd have to request developers of each app I use to make this a settable preference and invoke that method accordingly.) Is there some conventional way to translate from a method name to a global preferen...

Debugging Tools/Method for Mac OS X Interface Builder (3.2.3)

I am new to Mac OS X programming and so I am going through an introductory text that includes building interfaces using Interface Builder (3.2.3) for both Cocoa and Carbon. Unfortunately I am having problems getting some of the examples I type in to run error free in the Cocoa and Carbon simulators. So I tried downloading the source co...

Issue: Onclick triggered after onblur on Mac machines

Hi, We have a couple of textboxes in a form. All of which are validated onblur. The form is submitted onclick of an anchor tag. <script> function validateMyText(){ // do field validation // if success return true; // else { alert("Please check the text box value"); return false; } } </script> <form name...

ShortcutRecorder record CMD+Tab

I'm trying to allow ShortcutRecorder to record CMD+Tab. The problem is that, even if ShortcutRecorder has the focus, if I press CMD+Tab, the application switcher appears. Is there any way of allowing ShortcutRecorder to "intercept" the CMD+Tab? Thanks! ...

Some Problems about Http Live Streaming

I have a video website on Mac Os X. I can watch these videos on my iPhone through Http Live Streaming with wifi.I have divided the source video into 10 seconds of media per file. When I watched the video using one iPhone, there's no buffering tip.However, using three more iPhones to watch the video at the same time, it always show buff...

Programmatically change Mac display brightness

How to change Mac display brightness from cocoa application? ...

Connect to SQLServer running in a parallels VM

I'm running a Windows 7 VM via Parallels on OSX. There's an instance of SQL Server running on that VM. I would very much like to be able to connect to that instance from my host (OSX). I want to be able to leverage my local RoR environment with SQLServer as a backend. I can't get the VM to respond to any requests from my Mac and I ha...

How to develop something similar to LSP for Mac OSX

Microsoft provides the Layered Service Provider as part of Winsock 2 which makes it relatively easy to develop a user-mode network filter. I am looking to port an HTTP content filter LSP to Mac OSX, and am looking for ways to do the implementation. Is there any similar interface in Mac OSX, or is this something that can only be done at t...

Any possibility to get a notification if another application receives a scroll event?

Hi, I'm developing an application in Cocoa which allows users to draw on any given window in OS X. The drawings move along with the corresponding window when dragged on screen. To complete this tie between drawings and the windows (and their contents) beneath, I'd like to catch scrolling events from the window in order to react on the p...

How to badge file and folder using cocoa

I want to badge file and folder with some color(image), any idea how it can be achieved I tried with icon service, it work for files but it is not working with folders. I saw this behavior working Dropbox(https://www.dropbox.com/) (10.4, 10.5 and 10.6)- any idea how can this be done? The following was very close one for me, but it is n...

Add Network Service (VPN) Using Terminal

Basically my problem is that I need to write a script that automatically creates a VPN service in Mac OS X Snow Leopard that can be used on multiple machines to speed up the process rather than going through system preferences every single time. It is specifically needed to run on 10.6.* because the VPN needs to use the Cisco IPSec proto...

NSBundle bundleWithPath fails

Hello, I am trying to load a bundle using bundleWithPath but it always fails (returns nil) I was wondering what can be teh reasons why it fails and what are the way to het more information about the error. Thanks in advance for your help! Regards, ...

What is the updateShar process on os X?

What does this process do? Something is causing my MacBook Pro to hang and I'm trying to diagnose it. This is from 'top': PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE 93541 updateShar 0.0% 0:00.00 1 14 17 76K 184K 296K 9720K The VSIZE looks large. ...

Issues testing websites over local network

So I'm creating a few webapps that need to be tested over our local network, the projects currently sit on my MacBook which uses the built in Apache "Web Sharing" server. When developing locally, I just modify my hosts file and httpd-vhosts.conf to create virtual domains for each of my projects, and everything works fine and dandy. The...

SIMBL : possible to use it to install plugins in the dock

Hello, I am planing to use SIMBL to load a plugin in the dock. Do you know if it is able to do a such thing? I've checked on the website but no mention of this. Thanks ! ...

Finding a version number using grep

Basically i am creating an update checker for emesene on osx. I need to find out the version number from inside this file: http://emesene.svn.sourceforge.net/viewvc/emesene/trunk/emesene/Controller.py The version number is found at self.VERSION = 'version' in the file e.g. self.VERSION = '1.6.3' The version number then needs to be save...

Run Script on File Change on Mac OS X

Anyone know about a program for Mac OS that you can pass the name to an executable and a file to watch, so that it then runs the executable everytime the file being watched changed? I have something like this in mind: $ fwatch /Users/foo/doc.tex /Users/foo/run-pdflatex.sh & fwatch running. Listening for changes in /Users/foo/doc.tex....