osx

How can I eliminate latency in quicktime streamed video

I'm prototyping a client that displays streaming video from a HaiVision Barracuda through a quicktime client. I've been unable to reduce the buffer size below 3.0 seconds... for this application, we need as low a latency as the network allows, and prefer video dropouts to delay. I'm doing the following: - (void)applicationDidFinishLau...

Issues with rake after installing FreeImage on Mac OS X 10.6

I am trying to setup my dev environment on my Mac (running Mac OS X 10.6) for my work's rails application. It requires FreeImage and now that I have installed that, I run rake db:migrate and receive the following error: dyld: lazy symbol binding failed: Symbol not found: _FreeImage_SetOutputMessage Referenced from: /Users/username/.ru...

g++ on MacOSX doesn't work with -arch ppc64

I am trying to build a Universal binary on MacOSX with g++. However, it doesn't really work. I have tried with this simple dummy code: #include <iostream> using namespace std; int main() { cout << "Hello" << endl; } This works fine: % g++ test.cpp -arch i386 -arch ppc -arch x86_64 -o test % file test test: Mach-O universal binary...

Display NSWindow as Subview of NSView...

I have an NSWindow that I want to display as part of another window. It has to be an NSWindow; I don't want to change it to an NSView or anything... I just don't because it involves accessing foreign nib files and the such. How should I accomplish this if possible? I was thinking along the lines of grabbing the view of the NSWindow and ...

CHUD 4.7.2 + complete frameworks ?

Is there any way to get CHUD 4.7.2 installed with full frameworks ? Currently it seems that you either have to settle for CHUD 4.7.2 installed as part of Xcode 3.2.2 without frameworks, or install the CHUD 4.6.2 package after Xcode 3.2.2 to get the frameworks, but then of course you only have the older 4.6.2 tools such as Shark 4.6.2 ? I...

How to use open() a file in osx so that other threads can't remove it?

I want to implement a file level locking in my app. ...

How do you change the default collation of MySql for rake db:create:all in rails?

In my rails app I am running rake db:create:all in order to create the databases and I am prompted that the collations do not match. Is there a way to change the default MySQL collation? If not what is the best way around this? Thanks ...

Is it possible to hide the dock icon programmatically

Is it possible to hide dock icon programmatically on demand. I know one way by which defining property "Application is agent (UIElement)" in plist we make the cocoa app as user agent. But this result in hiding the dock icon permanently. I am looking for a way where i can control visibility of dock icon. Any idea ? ...

How can I port a closed-source application based on OS X to Linux?

How can I port an application based on OS X to Linux? It is closed source and working in Windows either. It is not wrriten in Objective C and doesn't use Cocoa. Thank you. ...

getpid from syscall with 32 bit app and kernel on snow leopard

Hi, I successfully called the exit syscall from assembly but I'm strugling to call the _getpid syscall and use it's return value. Here is the code I'm using .text .globl _getpiddirect _getpiddirect: pushl %ebp movl %esp, %ebp subl $8, %esp movl $39, %eax int $0x80 addl $8, %esp popl %ebp ret and #inc...

CoreData RelationShips

Working environment: OS X 10.6.3, Xcode 3.2.1 Hi! I'm working on a project called Rent-a-Flick. The project has two entities: Movie and Client. Between them there's a many-to-many relationship. I have 2 tables: one with the movies and one with the clients. Their content is bound to the proper array controllers(for movie and client). I...

Best way to edit Linux server configuration files on Mac OS X?

I'm used to editing my remote Ubuntu server through SSH and Nano. I've tried using Vim and Emacs but since I don't manage the server frequently enough I never quite get the hang of it and end up forgetting the commands. I use TextMate daily for programming and was wondering if there's any counter-recommendation against mounting the serv...

How can I obtain raw data from a CVImageBuffer object.

Hi, I'm trying to use cocoa to grab images from a webcam. I'm able to get the image in RGBA format using the QTKit and the didOutputVideoFrame delegate call, and converting the CVImageBuffer to a CIImage and then to a NSBitmapImageRep. I know my camera grabs natively in YUV, what I want is to get the YUV data directly from the CVImageBu...

How do I create a black-bordered bubble window in Cocoa?

I'm talking specifically about the kind you get if you click and hold on an app in the dock, or a folder if list view is enabled. Is it a menu style, or a window flag I can set like the brushed metal-style? Lots of little free apps seem to use it. http://bambooapps.com/free-stuff/ is a good example. ...

Finder conceals network connections from lsof?

If I use the Finder's Go->Connect to Server and connect to an smb/afs, I can see the connection in netstat. But I can't see it in lsof. I also use LittleSnitch, and it fails to detect outbound connections from the Finder. Why is this? Is there some sort of "Apple rootkit" that i'm not aware of? ...

How to install new modes in emacs 23 on OS X?

I just downloaded the Haskell and J modes off of SourceForge, and I'm having trouble figuring out how to make them interface with emacs 23. Google searches yield detailed instructions for emacs 22, but it looks like changes have been made that make it hard to figure out where I'm supposed to stick the source files. The internal documenta...

How do you push changes to GitHub on OS X 10.6?

I'm really new to the whole GitHub thing so this might seem like a basic question but I can't figure it out. I have a GitHub repository set up on my machine, I've managed at some point to push the master but now I have made some changes and I want to push the entire thing again (pretty much everything changed). What I'm wondering is: ...

BetterAuthorizationSample prompt not changing

I'm using BAS in a Cocoa app with a custom prompt for admin password... But now I want to change the prompt. I changed it in the strings file and it doesn't change. I rebuilt everything and deleted the sockets in /var/run and the launchdaemon and privelegedhelpertools folders. But the prompt just won't change!!! Help? ...

How do I get the Haskell Platform's ghc-pkg to work on MAC OSX

I have installed the latest Haskell Platform for MAC OSX and I get the error "Setup: failed to parse output of 'ghc-pkg dump'" when I do anything with Cabal. So I looked at my versions: ralphtq$ ghc-pkg list Cabal /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.1/package.conf.d Cabal-1.8.0.2 ralphtq-mac-mini:cabal-...

Where can I download PostgreSQL 8.2.16 installer for OSX ?

I've been searching for about an hour, but could not find any installer for this version... ...