mac

How do I create an iCal-type .ics file that can be downloaded by other users?

I want to create an iCal Calendar that can be downloaded from my website to the users Calendar program or imported to Google Calendar. What I want to know is if I do a direct Export from iCal on Mac OS X is that the file that I upload to my server? Any catches or caveats I should be aware of? Or is there a better way? ...

How to Ensure, whether message sent or not in APNs

Hi I tried sending the test message $apnsHost = 'gateway.sandbox.push.apple.com'; $apnsMessage = chr(0).chr(0).chr(32) .pack('H*', str_replace(' ', '', $deviceToken)) .chr(0).chr(strlen($payload)) . $payload; fwrite($apns, $apnsMessage); I got the message Connection Establishedsending message :�� d^÷Îå0ZCd%1ÄuwOOYš'ÊÈ}ârðm¾Í�...

How to totally uninstall Adobe Flash CS4 from mac computer

I've installed a trial of Adobe Flash CS4 (i didn't use this trial till the end) and wrongly entered the expired license number. I ran uninstall and tried to install a trial version again. Seems, that it keeps somewhere the wrong serial number and each time i run the Flash application it alerts me, that the license has expired. How do i ...

Moving from Windows API to Mac OS

Hi, I'm a Windows (native, not .NET) programmer and I'd like to port an application to the Mac. Actually, I believe it will be more of a rewrite, as the original depends on many activex controls. As I have never used a Mac in my entire life, I'll need some guidance. O:-) a) What book(s) would you recommend to make the move from Wi...

Localizing a modern xib-based Mac application

Ours is an open-source Mac application localized by volunteers. These volunteers will do their work on special localization builds of the software (with unstripped nibs), then send us the changes to integrate into the original xib and strings files. The problem is that, while there is a way to integrate string changes without blowing aw...

Converting a .so file to a .jnilib file

I've got a .so library compiled for Linux under the ELF format, which is being used by a Java program. I'm trying to port this application to Mac OS X, and have discovered that OS X uses a different extension for these files, .jnilib. I've already figured out how to set up the PATH so that it correctly finds the files. However, OS X Java...

Mac Web Sharing Subdomains

I'm using my mac's web sharing for my websute, and was wondeering if it is possible to add a subdomain to the mac web sharing... Thanks -Techy ...

Accessing Property Values of a Protocol?

Hey guys, I have a protocol which defines a number of ObjC-2.0 properties, like so: @protocol Repeatable <NSCoding> @required @property (nonatomic, retain) Date *startDate; @property (nonatomic, retain) Date *endDate; @end I have another class that implements the protocol: @interface AbstractRepeatable : NSObject <Repeatable> And f...

Installing Boost libraries on Snow Leopard

I have followed the directions on the boost website. I have put the boost dir in the path. I still cannot compile a C++ program using the boost libraries. I am specifically trying to use the filesystem library. Any help is greatly appreciated. --TJB ...

Save the contents of a variable in XCode Dubugger

Running the debugger in xcode when you set a break point you get a view a variable and can see all of the fantastically interesting values associated with it. Is there anyway to save/export this data to a file? I am of course having an issue where something is wrong but there is a ton of variables and I want to just compare one run of ...

library not found for -lrt with QtCreator [mac os]

hello, i'm getting some troubles with QT it builds with option "-lrt" i'm using mac os 10.6 with QT creator 1.2.1, heeeeeeelp ! this is the full build command : g++ -headerpad_max_install_names -o AMiningCoreTest main.o tokenizer.o DictionnaryToolBox.o mysql.o btree.o BTreeDataTable.o tcaccess.o -L/Library/Frameworks -L/...

Getting an Uniform Type Identifier for a given extension

Hello, I'm trying to find some way in Cocoa to translate from file extensions to Uniform Type Identifiers. That is, I want to find some way of doing this: ".jpg" => "public.jpeg" ".html" => "public.html" ".ttf"=> "public.truetype-font" I've searched on the NSWorkspace docs but couldn't find anything. The closest I could get was: - (...

Trying to get rsync to copy files back to svn

I'm trying to setup a particular workflow but having trouble figuring out how(or if) rsync will work for this. My setup is on Mac OS X. I have my SVN directory. When I run my deploy script, the files are moved over to my integration Apache server. I perform my modifications to the files, then manually have been copying them back to SVN...

Sample code for creating a NSTextField "label"?

In my desktop Mac OS X app, I'd like to programatically create a NSTextField "label" which has the same behavior and properties as a typical label created in Interface Builder. I usually use (and very much like) IB, but in this case it must be done programatically. Try as I might, I can't seem to find the combination of method calls th...

Oracle on Mac OS X Snow Leopard

Hi, I am trying to install oracle on snow leopard using these guidelines. http://blog.rayapps.com/2009/09/14/how-to-install-oracle-database-10g-on-mac-os-x-snow-leopard/ There is a step in the installation, where I have to change netca and dbca such that it runs in 32 bit mode. Can someone please tell me how to do it. I have pasted the...

How to avoid installing unnecessary dependencies with MacPorts?

I've tried to get postgresql 8.4 via MacPorts (on Snow Leopard) but it seems that the dependencies are endless - including getting older version of stuff that is already available in Snow Leopard, kitchen-sink and who knows if eventually I end up with windows 7 ... Is there a way to get only those dependancies absolutely necessary to ru...

How I used a proxy with Fink

After setting the proxy in "fink configure", it still did not work in Leopard. Running "env" showed that the http_proxy & friends were indeed set. Eventually I did "sudo -s", then "env", thus noticing that those variables apparently did not carry over to sudo. Apparently sudo has some sort of whitelist in /etc/sudoers, to which I added ...

Mac Terminal.app annoying bug - How to fix it?

Video showing the problem: http://www.mentaframework.org/download/TerminalBug.mov When I am typing on the Terminal.app and reach the end of the line, the next line starts on top of the first line, overwriting everything. Then if I use the delete key everything messes up and disappears. I did a ssh in the same terminal to a different h...

How can you suppress all logging in Cocoa app?

Is there a way to force suppression of all logging in a Mac OS X desktop Cocoa app? Sometimes some part of the system or a plugin (which is out of your control) will log messages on behalf of your application to the console (system.log). Is there a way to suppress all logging in your application? ...

How to Install OpenCV2.0 in Mac OS 10.6.1 (Snow Leopard)

Hi, I am not a Unix guy, so I have been trying to install openCV 2.0 for days with out success. I just downloaded the opencv library form sourceforge from this page: http://sourceforge.net/projects/opencvlibrary/ Does any one know the exact unix terminal commands for installing it? please don't say "go to google", I already did. I fou...