mac

VB macro or office addin for mac

Hi, Currently we developed a VB macro for word. While we tried to use it on mac it failed with message "VB Macro not supported in mac". Is there a way to c# office add-in for mac? My requirement is to have a simple utility to add comments(read from user) to the selected text in the current word document. Also need the functionality of th...

how do i accept and verify text field entries without using database classes?

i want to create an app in obj C that starts by accepting and verifying a locally stored username and password. can anyone please help me out wid it? ...

Read xml from NS

I create NSURLConnection to send an request like "http://www.mysiteabc.com/[email protected]&amp;password=123321" and recives an xml like <response> TOKEN=abcdef </response> in NSData. Anybody can tell me how to read TOKEN from NSData return by NSConection. ...

Get Data from NSMutableData?

How can i get data from NSMutabledata which returned by NSConection? Anybody can help me :) Data's returned by NSConection like : TOKEN=abcdef ...

Add HTML Signature to Mail on Osx

Hi, can anybody tell me how to add a HTML Signature with Images to Mail 3.6 on OsX? I tried following this tutorial: http://theappleblog.com/2009/08/07/how-to-getting-more-from-mail-with-html-signatures/ but none of the text in the example appears in the signature. It just stays blank. Greetz Spanky ...

PHP: Problem using passthru to stream a zip on mac os x only

I'm trying to put together a zip streaming solution through the use of Unix's zip command and PHP's passthru function, but I've hit a snag. The script looks something like this: <?php header("Content-Type: application/octet-stream"); header("Content-Disposition: attachement; filename=myfile.zip"); passthru("zip -r -0 - /stuff/to/zip/")...

Convert Objective-C code to C++ for detecting user idle time on OS X

Hi, I'm developing Qt/C++ application and I need simple function that retrive me User idle time in seconds on Mac OS X. I found this code for detection User idle time. #include <IOKit/IOKitLib.h> /** Returns the number of seconds the machine has been idle or -1 if an error occurs. The code is compatible with Tiger/10.4 and later (b...

Read Magic Mouse and Apple Wireless Keyboard Battery percentage

Hi I want to ask you If anybody know a simple way to access Mouse and Keyboard battery state in Mac OS. There are some API to access this information? Thanks! ...

Access Mouse & Keyboard Battery Status via API

Hi I want to write a little App for Mac and i need the battery percentage of mouse and keyboard connected via Bluetooth. Anyone can tell me if there are some API to do this? ...

Concatenate one NSMutableArray to the end of another NSMutableArray.

Hello everyone! A simple answer to this super simple question would be great! Here is the pseudcode: NSMutableArray Africa = [Lion, Tiger, Zebra]; NSMutableArray Canada = [Polar Bear, Beaver , Loon]; NSMutable Array Animals = Africa + Canada; What I want to end up with: Animals = [Lion, Tiger, Zebra, Polar Bear, Beaver, Loon]; Wh...

How do create a sectioned sidebar view?

I want to create a sidebar inspector-type view with collapsable sections, similar to what is seen in the right sidebar in Xcode 4. I have experimented with a combination of button types and views, but nothing seems to behave in the manner I desire. Here is a screenshot of the section for reference. ...

Printing Errors to a File in Cocoa/ Objective-C

Hello Fellow Computer People! Anyone willing to help will have my gratitude ;) Just wondering what is the best approach to printing errors to a file i.e. so that if my executable crashes I can have a record of what happened. This would be in Cocoa, Objective-C or C. Thanks, Eric PS. I hope my question is not too general or vague. ...

Error when trying to build anything after installing Xcode 3.2.3

I just recently installed the latest verson of Xcode as well as the ios 4.0.2 sdk with the disk image downloaded off of the apple developer site named xcode_3.2.3_andios_4.0.2.dmg. My past version of xcode came off of the snow leopard install disk. After the install I get an error when I try to build anything including a new project that...

Interactive Javascript gem?

I've found some online interactive Javascript editors, but I wonder if there is a local equivalent as a gem that lets me test Javascript just like IRB and Rails console in Mac? ...

netbeans - remove subversion binding on mac os x

Im desperately trying to remove subversion bindings in my netbeans project but I cant work out how to. I've tried to copy the files to another directory but the original svn bindings stays intact from the original source. Its hopelessly annoying! Please help! Thanks! ...

OpenCV -- record browser window instead of capturing camera output?

I'm trying to get started with OpenCV by trying to write a simple screen recorder -- one that can perform continuous or polled capture of a GUI window on Mac. For example, I could capture the client area of a browser window. I'm sure this is possible, but I don't know where to start -- any pointers? Is the framegrabber to read the GUI...

Why is this sed RegEx expression chopping off digits in certain circumstances?

sed -e 's/ *-\{0,1\},\{0,1\} *[Pp][Aa]\{0,1\}[Rr]\{0,1\}[Tt].\{0,1\} *\([0-9]\{1,\}\) *$/ (\1)/' I'm piping titles through this from an iTunes AppleScript. This should convert any title with a Part designation at the end to a parenthetical format For instance, Best of Both Worlds, Part 2 becomes Best of Both Worlds (2). The trouble r...

Send String to webserver in iOS?

I want to send a String (a long String, it's about 600 characters) to webserver (PHP webserver). Can i use NSURLRequest and NSURLConnection to send it to my PHP webserver? ...

WMV Playback using Phonon::VideoWidget and Flip4Mac fails in 32-bit builds

My application needs to run on Windows and Mac OS X and display various kinds of media files, such as videos and Adobe Flash content. After installing the Flip4Mac codec, I can play WMV video using Phonon on the Mac. In order to support Flash via the Flash plugin in a QWebView, I need to build a 32-bit binary. But when I do that, WMV pla...

What is the equivalent of "aptitude" in Mac OSX?

How to do "sudo apt-get install " on OSX? ...