mac

Is there a location for custom Ruby libraries to be stored so Ruby can find them?

I have written a module that has some generic, reusable code that I would like to be able to use in other projects. Is there a place I could put this file on computer so that Ruby can find it regardless of where I saved the file that is including it? I am using a Mac. ...

Exception while retriving data from Address Book.

I am getting this exception while retriving data from address book. I have check through internet but not get any help for that. Overflow allocating bitmap backing store. Cannot back bitmap with 320 bytes per row, -2147483648 height, and 1 planes I am using AddressBook Framework for retriving data from Address Book. is this issue o...

How to Convert Gray scaled image to RGB image?

Hi, I am on MAC OSX. How to convert an gray scaled image to the RGB format. Can i use the CIFilters for converting? Or any other way And also i want to reverse the operation. i.e., convert the RGB format to Gray scaled format. Regards, Dhanaraj. ...

How to Programmatically convert large scanline tiff image to tiled tiff image?

Hi, In Mac OSX Cocoa, How to Programmatically convert large scanline tiff image to tiled tiff image? The input tiff image size could be around (20000X12000) (20K X 12K) Regards, Dhanaraj ...

How do I determine which path my application is run from?

I'm creating a little program to copy the Domain file for iWeb over to a USB stick or external harddrive or such. The program is meant to be run from that USB stick or external harddrive, and then create a directory where the application is run from. E.g. the application is run from ~/Documents, the application should create a folder at ...

PVRTexTool, is there a way to run it on multiple files at once?

I am using PVRTexTool to convert png files to pvr files but the tool seems to only be able to run on one file at a time(wont accept *.png as file name). does anyone know how to run it on a group of files at once? Its really a hassle to run it on all of my textures. ...

Touch events, not limited to a specific view

How can I use touch events not limited to a specific view? I want to use those events for an background app and found out that I only can enable touch events for a view by using setAcceptsTouchEvents: Thanks in advance, Philip ...

How can I force qtcreator to create non-universal binaries

When I use qtcreator on mac, it creates universal binaries. Does anyone know how to set it so it just creates a 'native' binary? (So i386' in my case?) Qtcreator uses qmake as a buildsystem. Google hasn't been my friend so far, I hope stackoverflow will. EDIT: my config file so far: TARGET = mongowriter CONFIG += console CONFIG ...

NSNumber crashing program

HI, Due to formatting issues, I'm converting floats to NSNumber in my iPhone app. Although it generates proper strings it crashes program after releasing the object. I wrote simple program as console app for Mac OS X and same problem occurs. Can anybody advise how to solve that? Here is the code sample. All 3 messages are written to l...

NSApplication endSheet: has no effect

Ok, this is really stumping me: I create a modal sheet on a window as -(IBAction) login: (id) sender { [NSApp beginSheet:loginWindow modalForWindow:window modalDelegate:nil didEndSelector:nil contextInfo:nil]; } and try to remove it with -(IBAction) loginWindowCancelPressed: (id) sender { debugLog(@"cancel")...

import a .xcdatamodel in CoreData CLI

Hi all, i've a little Problem with a CoreData Command Line Tool. I simply created a new Project in XCode (Core Data CLI), created a Data Model in the .xcdatamodel File and auto generated a Header file. Finaly i modified the Code, wich should able to load the Entity. The Program Compiles without errors, but if i run the Program i get th...

What's the proper way to safely run this error-prone system call in perl?

So as part of a startup script for OS X computer lab systems, I am running a built-in shell command called systemsetup to sync the system with a network time server. It's running inside a perl script as follows. #!/usr/bin/perl system("systemsetup -setusingnetworktime off"); system("systemsetup -setusingnetworktime on"); Flipping it ...

Switch between Tabs in Netbeans on Mac?

I feel it annoying to have to mouse click the Tabs in Netbeans when I want to go to another opened file. Is there key command to navigate to the LEFT and RIGHT on Mac? ...

Function pointer in iOS?

Anybody can tell me about Function pointer in iOS? Thanks :D ...

Unable to install Eclipse IDE on my Mac

Hello, I'm trying to download Eclipse IDE for Android development. I've downloaded the setup but whenever I try to open the dmg it gives the an error saying: "Can't open the application Eclipse because it is not supported on this type of Mac." The Processor of my Mac is 1.83 GHz Intel Core Duo and version of my Mac OS X is 10.6.4. ...

Audio Queue Services: changing output device

Hi, I've spent the last week on an unplanned excursion into the depths of the Macintosh sound system after NSSound proved to be unequal to the task.. I finally got my file playing with Audio Queue Services and now there's only one little thing left to do: switch output devices. Unfortunately, it seems that I'm either doing something wr...

How to run xCode 3.2.2 project on xCode 3.2.3?

I have a iPhone project write on xCode 3.2.2 but i want run it on xCode 3.2.3! I try do it but it show me a message "error: There is no SDK with the name or path 'iphonesimulator3.1.2' ". Anybody can tell me how to run my project on xCode 3.2.3. Thanks :) ...

CoreData on a distant server syncronizing between different clients (apps)

Hi @ All, I'd know if it exists a kind of CoreData server ? The point is to get an "automatic API server" providing data to clients. It can be useful to implement very quickly standalone Forum app, Games or anything on the cloud... ...

Google Chrome extension: Mac Compatibility

I've this Tab Sugar Google Chrome extension which works fine under Windows: when installed, the user can click on its icon right in the browser, and access the Tab Sugar dashboard, as a new page in a new tab. But for some reason, it doesn't seem to work at all on Google Chrome under OSX: users experience that nothing happens when clicki...

Installing Oracle XE on Mac Leopard (issue with a segmentation fault)

I am trying to install Oracle XE 10.2 on my Mac Leopard. However, it doesn't go without a lot of fuzz. Thankfully I have this tutorial at my disposal: http://bit.ly/a4rc4O The only pain I am left with is the following command that fails (from the cfgtoollogs/configToolAllCommands). /Users/oracle/oracle/product/10.2.0/db_1/bin/netca /o...