mac

Mac apache problem

I run apache on a mac. My document root folder is /Library/WebServer/Documents. When I create new subfolder under Documents folder I can't load images from that subfolder. My html file under /Library/WebServer/Documents/test is: <html> <body> <h1>Test</h1> <img src="http://localhost/test/angry.gif"/&gt; </body> </html> The angry.gif ...

QuickLook Plugin: how does it work when 2 plugins handle the same file type?

If a user has 2 or more quicklook plugins that handle the same kMDItemContentType what happens? Which plugin gets priority to do that actual work? Can that be set programmatically? ...

Read input from USB IR Receiver

I've an IR Receiver. There aren't drivers for Mac. I find this device in IORegistryExplorer, now i want read inputs from this device. ...

make openssh on MAC OSX and problem with libcrypto

I need to compile openssh for leopard (10.5) on 10.6. but openssh has a dynamic link to libcrypto.0.9.8 which is not available on Leopard 10.5. The leopard version is 0.9.7. but somehow I can't link directly to 0.9.7. When I copy the 0.9.7 version to the root of openssh source, It doesn't compile. Currently I'm building with these flags...

VIM in GNU screen in Mac Terminal.app scrambled text

Trying to use Vim in Mac's Terminal.app but it's unusable, terminal is only refreshing line or column where the cursor is, so scrolling is quite bizarre. Text is being updated only on the line where the cursor is, but the rest is not changing. Very weird behavior, I've seen this on linux too, with nvidia driver, the bufferes somehow were...

What flags do I need to pass to ditto to mimic the behavior of "right click -> Compress"?

I'm writing a shell script that needs to compress a dir with the same options that are set from the Mac GUI when you do a "right click -> Compress". From what I understand ditto is the right tool for the job, but what flags do I need to pass besides "-c"? I've tried raw "-c" as well as "-c -k" and both give different results from the r...

Core Animation Layer Rotation on the left side?

Hi, With the following code I'm able to rotate the layer based on the left side. But how can I rotate it based on the right side? Thank you, Jose. CALayer *layer = [masterTasksLeftSideView layer]; [layer removeAllAnimations]; CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.y"]; CATrans...

Reading input from remote control device on macs

How could I read input from a remote control device on a mac (iMac, Mac Mini, etc.) and handle actions based on differently pressed buttons in python? I would like to map the button-press events to my custom app instead of "Front Row". What actions should I take to do that and what python libraries to use to handle the events? ...

precompiled header name gets stuck

I'm new to xcode and I must be missing something. Create a new command-line project. Call it tempprog (for instance). Select Project/Edit Project Settings. Edit the name of the prefix header (tempprog_Prefixz.pch). Build - it will fail, of course, looking for tempprog_Prefixz.pch Now change the name of the prefix header back to temppro...

Slide and Label Update

Hi. Is there a way to update a label bind to a slider while the slider is draged? I bind the label to the slider via 'takeFloatValueFrom:' but it's update the value only when i release the mouse from the slider. Thanks ...

What is the message flow of command+q on a Mac

Hello, I am building a mac application in cocoa and would like to know what is the message flow (method calls) when the user presses command+q. The app uses the document based architecture. Thanks. ...

What's a suitable cross-platform methodology for iOS and Mac OS X?

There seem to be lots of answers for cross-platform frameworks for devices (iPhone + Android), and cross-platform frameworks for desktops (Mac + Win + Linux). This is a different question regarding a suitable framework, methodology, template app, tutorial, or just helpful hints, on developing native apps (not just web apps) that are cro...

Need iPhone Human Interface Tutorial!!!

I have just spent little time with iOS. Anybody can tell me how to construct a nice Human Interface in iPhone. Give me advices, tutorials or something help me to learn how to construct a nice iPhone Human Interface. Thanks:) ...

Apache Ants sshexec task and a passphrase problem under Mac OS X

I would like to use a sshexec task in Apache Ant under Mac OS X like this: <!-- ... --> <target name="uname"> <sshexec host="${host}" keyfile="${user.home}/.ssh/id_rsa" username="${user}" command="uname -ar" /> </target> <!-- ... --> But i will only get an error "Auth cancel" for "ant uname": BUILD FAILED /build.xml:78: com.jcraf...

Mac and Chrome - manipulating open windows - focus, etc.

Hi, I have a web app that has one window, sized small to the left, open a number of windows to the right. There are buttons on the small window, each associated with the other open windows. The point is that when you click a button, it's associated window comes to the top of the pile of windows on the right. This works fine with using ....

Make an Image have rounded corners with Objective-C / pure C

Hi, How do you make an NSImage Image have rounded corners? I'm doing Mac Dev not iPhone dev. Thanks in advance. ...

File permission issue with Mac/Windows when using git

I ran the following code to pull files from windows git repository. git pull /Volumes/sucho/Desktop/git/setup And I connect the Windows directory as follows. tell application "Finder" mount volume "cifs://WINDOWS/c$/Users/sucho" as user name "USR" with password "PW" end tell It works well, but the problem is the pulled files fr...

NSTextViews and background layout

Hi, I've got a really weird crash on Leopard (not on Snow Leopard) concerning NSLayoutManager, NSTextView and the background layout feature. My application is 64-bit garbage collected and that seems to be the root of the problem. I've established that the crash happens like this: 1) the system decides to do some background layout on s...

Start app at startup in mac osx using python3?

An app created with python3 & pyqt needs to be executed on startup. Whenever the app gets executed it has to check whether it has been added to startup list, if not it should be added to the list so that by next time it should be executed on startup. Is there a way to initiate an apple script using python3 or python3 itself to acheive t...

NSOutlineView selection binding error

Hi I got the next situation: NSOutlineView <-> NSTreeController <-> MyClass I bind the NSTreeController to an array of objects in MyClass, now I want to get the selected item from the NSOutlineView. For this i declare a NSMutableIndexSet and bind it to the NSTreeController via the "Selection Index Paths" binding how is bound to the NSO...