mac

Visual Studio on Mac Book Pro

Hello, i just bought a MacBookPro (13", 250HD and 4GB Ram) because, among other things, i would like to write iPhone Apps. I need, anyway, to use VS2010 so i think to install Sun Virtual Box (i've used and i like it) to run Windows7 with Visual Studio 2010 and SqlExpress2008. Have you tried it? How many RAM GBs should i reserve to Windo...

Do I really need always a bidirectional relationship in Core Data?

Example: If I had two entities Person and Car, and each of them should be linked with an Image entity - how would this have to look like? Right now, I would make just three Entities: Person, Car, Image. So persons and cars can link to an Image entity. They have a 1:1 relationship to the Image entity. But now, a Core Data dude said that...

Dyld: Library not Loaded Error Mac OS

Hoookay, So I know I'm about to get a dozen "load the lib dummy" answers to this, but here goes... junk.framework is exporting some objects of another project (junk.app) so I can use it on a remote.app node on a cluster. I can compile junk.framework (which I realize means nothing anymore with dynamic loading) and compile and link remo...

Mac os x systems programmng and bsd

Hi all I'd like to get into some mac os x systems programming and wondered, although mac os x is a Mach and bsd hybrid, would a bsd programming book suffice since I can't seem to find any books on mac os x systems level coding (or mac os x architecture)? Any pointers would be much appreciated. Thanks ste ...

Git using wrong email address when talking to Heroku

git clone [email protected]:myapp.git Results in a "myoldemailaddress not authorized to access myapp" myoldemailaddress was an email address I was using on an old heroku account, but it seems to be stuck using it, I can use my new one. I've removed the .heroku directory, and regenerated it, it has the correct user name and password, I c...

Including FFMPEG with a Java application on Mac

I'm writing a Java program that will be used on both Windows and Mac. In the program, I'm using FFMPEG to convert a MOV file to an FLV. On Windows, it's no problem -- simply call the command. But on Mac, I'm not quite sure what to do. Does the user really have to install FFMPEG on their machine, or can it somehow be included in the Java ...

Finding name of inserted CD in Cocoa

I had a bookmark which described the process on how to do this - finding the name of a mounted CD in OS X - but I deleted the bookmark when I reformatted my Mac. :P Reading up on the subject, this is what I think might work. Basically, I need to verify if a particular CD is mounted before continuing in the application Access NSWorksp...

Ad framework for Cocoa (Mac) applications?

Does anyone know any good frameworks that would allow me to integrate some ads into my Cocoa Mac application? ...

How do I make a file that identifies as a custom UTI type?

Right now I have an application that generates an XML file. We'll call it someFile.myapp When my app saves the file and look at it using mdls it has a kMDItemContentType of "dyn.234kdfsjk23jk24234kjfd" How can I get the UTI type of the file to be a custom value like com.mycompany.myapp? ...

Simply make a label say Hello World in Cocoa (Mac programming)

I'm a total newbie to programming in coca for the mac so this question is probably easy. I have a window, and on that window I have a Label. I want to be able to update this label from my program with the current status or what's going on (eg. reading in file, parsing, etc.). My problem is that I don't know how to access the label a...

On Mac, two jpg's whose color should match do not

So I'm designing a myspace page and I have two images, one is a repeating bg image, and another is an image which loads on a layer above it, which acts as a header/masthead. For some reason, on Macs only, and only in the browser (tested in safari and ff), the masthead renders slightly darker than the repeating bg image, creating this co...

How to create svn folder in mac os x

hi, i am working on iphone project, i like to create an svn folder and link that one to my server I tried to run the below command fsp3s-MacBook-Pro:~ fsp3$ svnadmin create /ram/Code/SVN i got the below error svnadmin: Repository creation failed svnadmin: Could not create top-level directory svnadmin: Can't create directory '/ram/Co...

VLC helper protocol on Mac OS X

Hey everybody, I am trying to add a vlc:// helper protocol on Mac OS X. To register the protocol, I have unsuccessfully been playing around with the MoreInternet PrefPane. What I want to have in my browser is a vlc://someressource.com/audio.mp3, which should launch VLC and add http://someressource.com/audio.mp3 to the playlist (this wo...

list of uids / names of System Preferences > Accounts

How can I obtain an array with uid and names? I could iterate from 0 to 99999 and do a getpwnam(). However most machines have less than 5 accounts, so it's not optimal. I don't know what framework is responsible for this and thus I have no clue what to search for. Is there a more optimal solution that can traverse the accounts? Edit:...

How do I fix my Ruby installation

Hi all, I rather cleverly (or not in hindsight) installed RVM, which kept hanging whilst compiling Rubies. I have removed the .rvm directory but now my system has reverted to Ruby 1.8.7 i.e. when I type: ruby -v which ruby they both point to 1.8.7. How do I get the ruby command to point to my 1.9.1 installation, which is located in...

Qt mac : How does the layout differs from other OSes

Qt is a nice framework which allows people to develop something once and it will works for the 3 main OSes. But from times to times, there is some differences in the layout: placing some widgets does not have the same behavior as in windows or linux. Did you observe weird behavior ? on which Widgets ? how did you corrected this ? Than...

Properly handling NSURLConnection errors

Hi, I have a simple form interface set up that send username and password information to a server: (working) NSString *postData = [NSString stringWithFormat:@"user=%@&pass=%@",[self urlEncodeValue:sysUsername],[self urlEncodeValue:password]]; NSLog(@"Post data -> %@", postData); /// NSData* postVariables = [postData dataUsingEncodin...

Mixing libraries with and without RTTI with GCC on Mac OS X?

I've been banging my head on an issue and before I continue injuring myself some more, I'd like to confirm: Is it possible to have a GCC project that uses libraries that are compiled with and without RTTI? So, for example, I have project A (compiled without RTTI) that uses library B (compiled with RTTI) and library C (compiled withou...

Core Data and poor performance

I've been working this issue for a while now and I am open to any best practices/advice. The Example So I created a sample Core Data application. The application is basically a mimic of the AddressBook application. I have the following Entities: Group, Contact, Address, Phone, Email, Webpage, Dates. As you probably are guessing, a Gro...

Prevent OCUnit tests from running when compilation fails

I'm using Xcode 3.2.2 and the built in OCUnit test stuff. One problem I'm running into is that every time I do a build my unit tests are run, even if the build failed. Let's say I make a syntax error in one of my tests. The test fails to compile and the last successful compilation of the unit tests are run. The same thing happens if ...