mac

Test assembly code on a mac

Hello, A while back I was following some tutorials an assembly. I was running it all on a windows machine, compiling with NASM and then writing the compiled code to a floppy disk, then reboot and try the code. This process was long and time consuming and sadly was not on a mac. When I found out that Xcode for mac installed NASM I immedi...

Open source Mac video streaming server solutions?

In my application, I want to stream videos shot on an iPhone, *.movie files, from a server running on a Mac desktop to an iPhone or iPad client. What are some possible open source servers that do this that are small enough to be shipped or embedded with a downloadable Mac app? There is a product StreamToMe by Matt Gallagher that does t...

Could MacRuby / HotCocoa supplant the need to know Objective-C?

I just discovered MacRuby / HotCocoa and really like the sound of what they're doing. I had essentially discounted the prospect of making Cocoa GUI applications myself because I have an aversion to spending time & effort learning yet another C-based language, Objective-C. I'm not saying it's bad, just not for me. Is it the case now, or...

Quartz2D and gradient line

how can i draw gradient line with quartz2d? ...

Localization of javax.swing.JOptionPane's default button labels in OS X

How can this be achieved? I have the ff. test code: javax.swing.JOptionPane.showMessageDialog(null, "Hello, world!"); Running it with, say, -Duser.language=zh and -Duser.country=TW doesn't work. I.e., the OK button is still labeled "OK". In Windows, for example, it is replaced with the Traditional Chinese equivalent. ...

Website slow only on Mac

It seems that our site (.Net based , ASP 3.5, minor use of Flash) runs awfully slow on Mac (OSX, FireFox 3.5) e.g. http://www.cadastre.be/Belgique/Bruxelles_Capitale/Bruxelles It usually happens on large pages (about 200k) - while the same page runs smoothly on the same machine running Windows VM. My initial assumption was that it is...

Where are the image files for the constants in NSImage located?

I'd like to get the image files for the constants definied in NSImage.h, like NSImageNameGoRightTemplate for example. I'd like to copy and edit some of them. Does anybody know where those images are located? I'm too stupid to find them on the drive... ...

any mac mini for iphone development

are all mac minis possible (if not really suitable, like used 1.4 GHz mac mini) feasible for xcode simulator of iphone devel.? Are all mac minis intel-based? ...

PHPUnit installed but class PHPUnit_TestCase not found

Talk about falling at the first hurdle. My test script: <?php require_once('PHPUnit/Framework.php'); class TransferResponseTest extends PHPUnit_TestCase { ... } Running my test case: $ phpunit TransferResponseTest Fatal error: Class 'PHPUnit_TestCase' not found in /Volumes/Data/greg/code/syndicate/tests/TransferResponseTest...

Question about mail merge in DesignPro 1.0.1 for mac

I'm using Avery DesignPro v. 1.0.1 for mac to print out address labels using a mail merge. There are two columns for addresses (Address1 and Address2), but for most of the entries on the list, Address2 is blank. When I do the mail merge, I get several address labels with a blank line between Address1 and the City, State line because th...

cocoa, mac, is there any tools can inspect the class constructs hierarchy of the window or view on Mac?

as topic, I want see the inner constructs of a special view on Mac, like the class name,and hierarchy , etc. as we know, on Windows, we can use Spy app for this purpose, if any the same feature app can be use on Mac ? thanks for you reply. Regards ...

Access Parallels Windows localhost from Mac

I use Windows (7) OS as a development platform, running on a Mac / Parallels Desktop 5. I would like to access the Windows localhost - from the Mac side for testing purposes. I've found many solutions of accessing the other way around (access Mac's localhost from Windows) - but found no solution for this access direction (if any). An...

Asynchronous I/O on Mac OS X

Hi, Meaning the C10K problem, what is the best way to do asynch I/O on Mac OS X (assume to use on Mac and iPhone/iPad)? On Linux our choice is epoll, on Windows is I/O Completion Ports. Top priority is performance and scalability (thousands of connections). UPDATE OK. As Darwin is BSD-like system, my common idea is to use kqueue. Is...

Equivalent of print "-"x20 of perl in Bash or command line

In perl you can simply write print "-" x 20 and you get a line with dashes...but i need the same thing in bash/commandline on linux without perl/(g)awk etc. any ideas? The intention is to use it in the -exec of the find command and i want to prevent using simple echo "---------" ... ...

Problem with blocking unix domain sockets

I'm writing an application that is split into two parts for Mac OS X - a daemon and an agent. I'm using a standard unix socket to communicate between the daemon and the agents. That is, the socket is created with PF_UNIX and SOCK_STREAM. When agents are created (whenever a user logs in), one of the first things it does is to connect to...

How to make Eclipse compile with Java 1.5 in Mac OS X Leopard (10.5)?

I have been developing in Snow Leopard (10.6). I believe I have some Java6-only API features and I'd like to find these. I moved my project to Leopard (10.5) -- since Snow Leopard does not support Java 1.5 -- but I am so far unable to make Eclipse give compile errors for a Java API call which I know to have been added in 1.6. Here is ...

Trying to cat files - unrecognized wildcard

Hello, I am trying to create a file that contains all of the code of an app. I have created a file called catlist.txt so that the files are added in the order I need them. A snippet of my catlist.txt: app/controllers/application_controller.rb app/views/layouts/* app/models/account.rb app/controllers/accounts_controller.rb app/vie...

How to paste text from one app to another using Cocoa?

I have read about NSPasteBoard in the Apple documentation, and how it allows for applications to write into the PasteBoard and allow other applications to read that text and use it. Could someone tell me how to paste text from am application (that sits in the status bar) into a NSTextField that is inside a different application. What ...

How to turn off anti-aliasing for the text editor in Flash Builder?

Is it possible to turn off anti-aliasing for the text editor in Flash Builder on the Mac? For Flex Builder I was able to do this via the terminal using the following defaults write com.adobe.flexbuilder AppleAntiAliasingThreshold 20 defaults write com.adobe.flexbuilder AppleSmoothFixedFontsSizeThreshold 20 ...

Can't build pyxpcom on OS X 10.6

I've been following these instructions at https://developer.mozilla.org/en/Building_PyXPCOM but getting this: $ make make export make[2]: Nothing to be done for `export'. make[4]: Nothing to be done for `export'. make[4]: Nothing to be done for `export'. /opt/local/bin/python2.5 ../../../src/config/nsinstall.py -L /usr/local/pyxpcom/bui...