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"/>
</body>
</html>
The angry.gif ...
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?
...
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.
...
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...
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...
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...
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...
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?
...
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...
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
...
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.
...
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...
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:)
...
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...
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 ....
Hi,
How do you make an NSImage Image have rounded corners? I'm doing Mac Dev not iPhone dev.
Thanks in advance.
...
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...
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...
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...
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...