Hi,
I am able to simulate mouse click event using the following code-snippet.
CGEventSourceRef source = CGEventSourceCreate(kCGEventSourceStateCombinedSessionState);
CGEventRef theEvent = CGEventCreateMouseEvent(source, type, point, button);
CGEventSetType(theEvent, type);
CGEventPost(kCGHIDEventTap, theEvent);
CFRelease(theEvent);
...
Hello,
as stated in the subject, I am looking for a way to change a Flash Drive name/label which is appear on the desktop when the volume is mounted.
I have tried different ways:
1) Disk arbitration
2) Just rename as a File using NSFileManager
Thanks in advance,
Vladimir
...
In Windows I would create a .bat file to run this script from my desktop, on my Mac how do I create something similar that can be run from the desktop to execute this:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
...
I am receiving the following warning when compiling a Qt project, but ONLY on Mac OS X with GCC. Windows with MinGW and Linux with GCC do not emit this warning.
/Library/Frameworks/QtCore.framework/Versions/4/Headers/qtextcodec.h:175: warning: 'QCoreXmlStreamWriter' is already a friend of 'QTextEncoder'
Why is this showing up and how c...
I'm developing a Qt-based application and when I use macdeployqt on the bundle, the Qt plugins are not copied to the bundle.
However, if I run it a second time, they are. Additionally, "The svg icon plugin is deployed if the application uses the QtSvg module." is not fullfilled - my application does use QtSvg but the iconengines/* plugi...
I've started programming Erlang code that's going into production (gulp!), but I'm still using TextMate in Mac OS X, Notepad++ in Windows 7, and GEdit in Ubuntu 10.04... (I use all three at work and at home).
Emacs is the IDE of choice for programming Erlang, and I'd like to use the same editor on all three platforms. I have an idea of...
I have just set up PHP APC module on a Mac running OSX 10.6 using XAMPP. After a lot of fiddling around I thought I have it working but now when I load a URL the first site that is loaded is the site that displays for every site hosted on the server.
These are the steps I followed to get it installed:
cd /tmp
wget http://pecl.php.ne...
I am reading the book Programming Ruby and am looking to upgrade the version of Ruby on my computer. I run Mac OS X Snow Leopard and doing ruby -v in the command line shows I am running Ruby 1.8.7.
I installed MacPorts and ran the sudo port install ruby19 command but whenever I type ruby -v, it still shows Ruby 1.8.7.
Could anyone hel...
What's the difference between using a LaunchAgent and checking "Open at Login" in Dock? And how do I access the latter programmatically?
...
I've installed the newer version of SQLite3 (3.7.0.1) on my macbook (OS X 10.5) but 'sqlite3 --version' gives me the older version I had on my system:
$ sqlite3 --version
3.4.0
I suppose I was expecting this version to be overwritten but that doesn't seem to be the case. Can anyone clue me in? I'd really appreciate it, right now I'm t...
Hi,
I developed this Air application which tests fine on Windows. At a certain time when i click a button, it is supposed to open a popup which does not work in mac.
Is this a problem with multiple children getting added programatically? Also double click works fine at times and doesn't at other. Since this is a Mac only problem, are t...
Hi,
Working in Mac OSX, Cocoa
I have an psd image with layered property.
I want to crop it to the crop rect and save this cropped image with the settings of original image.
I am using CGImageRef for all the image related operations.
I have enclosed the code i used to crop the image is given below. But it fails to create the layered i...
I want to create an application on a Mac to convert multiple files (txt, pdf, doc, html, etc) to a single pdf file that can be printed. The real point is that if you have 50 texts you don't have to open every single file and click command-p.
I'm not quite sure whether the best way to do this is by creating a full-fledged app or an autom...
Hello,
When Apple's Remote app tries to connect to a Mac (running iTunes) on a local network (using WiFi), the user needs to enter a passcode provided by the iPhone as a security measure. This approach has been adopted by a number of other apps (e.g., Rowmote, Pastebot, ...). Is there an API that provides this way of working?
Assuming ...
Hi All,
I am in Mac OSX, Cocoa .
I want to read and write multi layered .psd images.
With Cocoa native api's i can read or write the images as flat images.(i.e., single layered)
So is there any 3rd party library available to perform the operations?
This is my earlier query.
http://stackoverflow.com/questions/3456560/psd-image-creati...
Hello,
In objective c in mac development, how do i open a url in safari?
I know how to in iPhone dev but not in Mac Dev
Thanks!
...
I only have about 2 yrs experience of web development under my belt, so I may be missing something quite simple....
I created a heavy javascript file that I dropped into the header of my company's intranet. It uses jquery and ajax calls to create a messenger similar to facebook or gmail's messenger.
When the page loads, every 20 sec th...
When I was reading about the new 4.0.2 iOS update I wanted to know what hackers do or try doing with a buffer overflow, which after some wikipedia'ing got me interested in playing with malloc and thus creating my own "NSObject".
I am not actually planning to use this in any of my applications, its only for learning and playing around wi...
The name of the file which contains the lib and the name used in -l do not always match. So how can I figure out the name used when linking? Usually I googled, but it should be somewhere in the system I think..
...
Hello.
In objective c (Mac development). How can i find out if a number is divisible by another number and not a decimal?
...