mac

apple's developer license

Hi Guys, We are company with 10 iOS developers. Do we need to purchase developer license for each machine? Or is there any concept of purchasing bulk licenses? Like what is the alternative of single user license? Regards ...

How to get the modified environmental variables using c programme in Mac using bash terminal

Hi, I want to get the modified environment variables using C programme in Mac using bash terminal how to get it? if i use getenv i will get only the default system defined environment variables but i am not getting the modified one. how to get it ...

Running a local instance of apache without admin rights on Mac OS X

Hi! I'd like to make a portable version of apache/php to develop locally. But the problem is about binding a port. That process requires admin rights, which I don't have on my workstation. I'd like to compile an apache/php version which I'd transfer on my workstation and run it without any rights requirements. I read about privbind, ...

Iphone/Ipad safari and buttons with graphics

Hi There, I'm new to web pages etc and have a problem with pictures and words in buttons on safari on the Mac and Iphone. The buttons display correctly on the Mac but on the iPhone/Ipad they are squashed showing the top of the graphics only. The code is generated by PHP and I can't find a way to correct it. I'm using button tags and onc...

Random errors compiling with Mono gmcs on Snow Leopard

Hi everyone, I'm running OS 10.6.4, and recently tried installing Mono. Something seems to have gone awry though, I can't even compile basic code. The following: using System; public class HelloWorld { public static void Main() { Console.WriteLine("Hello Mono World!") } } Gives me this result: user$ gmcs...

Question about multiple callbacks occurring at the same time

I have a thread watching for file system events on Mac OS X. If I copy 100 files into a folder that is being watched, I obviously get multiple file system events, and therefore multiple callback calls. I'm wondering if these callback calls are processed one after another? Or does each event invoke an OS thread, which in turn calls the ca...

What is Mac's REAL marketshare ?

Hello all. This is my first post on the site. Quick intro: I operate a one-man shop where I design software for a fairly small niche in the financial services industry. I target Windows desktops exclusively and my development framework is .NET/WPF. I'm trying to decide whether or not it makes sense for me to port my flagship software ...

Is possible in a Mac App build an iPhone Static Library xcode project?

Hello, I see that I can build iPhone Static Library xcode project with -xcodebuild into the terminal. So I create a Mac App that execute a shell script which build the project. My question is if I can hide my iPhone Static Library project and its classes from user's eyes. Thank you in advance ...

Building Python libraries on a Mac and experiencing flat namespace errors

As a general rule, I rue the days whenever I have to build Python libraries on a Mac. I've generally had fairly good success using Boost::Python, and if I use distutils, most of the time everything works correctly. However, I've never been able figure out the exact combination of what works/what doesn't work. Specifically, I've often ru...

C: fscanf and character/string size

Hello. I am parsing a text (css) file using fscanf. The basic goal is simple; I want to pull out anything that matches this pattern: @import "some/file/somewhere.css"; So I'm using fscanf, telling it to read and discard everything up to a '@' character and then store everything until it reaches a ';' character. Here's the function that...

How can I convert TTF glyphs to .png files on the Mac for free?

How can I convert TTF glyphs to .png files on the Mac for free? If there's some way to do this programmatically within a program, that would work too. ...

RegexKit Category problem

I'm having some trouble using the RegexKit.framework. I've properly integrated it into my project and I want to use the NSString category methods to get an array of matches from a string. Though I have imported the the framework Xcode keeps complaining that "NSString may not respond to '-stringByMatching:'". Do I miss something when work...

Escape whitespace when using backticks.

I've had a search around, and from my perspective using backticks is the only way I can solve this problem. I'm trying to call the mdls command from Perl for each file in a directory to find it's last accessed time. The issue I'm having is that in the file names I have from find I have unescaped spaces which bash obviously doesn't like. ...

How to open a symlink without the terminal window popping up?

How can I open a symlink without the terminal window popping up? Moreover, when I close the terminal window, the application quits as well. I tried using nohup open symlink1 without any results. I have made a symlink to the iTunes executable (the one inside the contents package, NOT the iTunes.app) which I want to be able to open by ...

How can I compile GCC on a mac so compiled executables will work on earlier versions of OS X?

I'm attempting to build a program (Dwarf Fortress) that uses C++0x features that aren't well supported in the latest Leopard version of XCode. As there is also a significant speed boost from using GCC 4.5, we've decided to build our own. However, this causes the resulting executables to not work on Tiger, citing missing symbols in libc....

How can I import HTML into an iWork Pages document?

I'm working on an ebook that I'm writing as plain text/Markdown. I converted that into HTML and would like to import the generated HTML document into a Pages document to do the final formatting. I created a Pages template and defined styles for headings, lists, etc. However, when I copy/paste the HTML file from Safari into Pages, the pa...

How do I programatically collect packets from passively sniffing?

I want to test the vulnerability of the server I just wrote against man in the middle attacks. How (on Mac OS X) do I analyze packets. (I'll be checking where they are going, pulling information from if they are heading to my server, and seeing what all is available) Then I'll figure out a way to encrypt everything... but first things...

Can't Build a simple Cuda Program using Xcode !!!

I'm using Xcode 3.2 on Mac OS 10.6 to build a very simple HelloWorld program for CUDA but it fails to build .. any ideas !!! this is the code : #include <iostream> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <CUDA/CUDA.h> __device__ char napis_device[14]; __global__ void helloWorldOnDevice(void){ napis_d...

NSTextView Subclass - A4 Paper Look

Hello, I am thinking about modifying my NSTextView to look like an A4 sheet. So basically a line drawn around the textContainer, but I don't know how this could be done... Just in case no one understands what I mean, I've attached a screenshot :P http://web.me.com/david.schiefer/a4.png Thanks :) ...

How can I edit file metadata in OS X?

Does anyone know if it is possible to directly edit file metadata on OS X. Specifically in perl. The parameter I'm specifically trying to change is kMDItemFSLabel (The color of the file). I've had a search around and I can't seem to find a way to do this without using a module such as Mac::Glue or an external application (Finder). ...