osx

MacPorts or Fink?

Which do you use? I am just in the process of installing sqlite3 from MacPorts (Mac version is 3.1.3 and Python 2.5 seems to be linked to a newer version, fileformat is new...) and have to download all the tools I'm sure fink allready knows about again = so far I have allways found everything with fink... Which of the two do you use? ...

What's a good machine for iPhone development?

I'm going to be working on some iPhone apps so I've been given a golden ticket to buy a Mac. However the golden ticket isn't worth that much, and I'm thinking iMac. Now, Macs are great, I love 'em and use 'em at home, but I know that the iMac is geared more towards the average consumer than the professional. Is an iMac going to be powerf...

What could prevent OpenGL glDrawPixels from working on some video cards?

The following code writes no data to the back buffer on Intel integrated video cards,for example, on a MacBook. On ATI cards, such as in the iMac, it draws to the back buffer. The width and height are correct (and 800x600 buffer) and m_PixelBuffer is correctly filled with 0xAA00AA00. My best guess so far is that there is something amiss...

Height of NSTextView with one line?

I want to programatically create an NSTextView. How can I determine the correct frame height so that the view displays one line of text in the current default font? ...

Any pitfalls developing C#/.NET code in a Virtual Machine running on a MAC?

I am considering buying an Apple MAC book Pro, are than any pitfalls developing C#/.NET code in a Virtual Machine running on a MAC? For this purpose, is it better to run Vista or XPPro? ...

Mac Virtualization: VM Ware Fusion or Parallels

I'm curious for all your Mac users out there which virtualization software you use and why? I've been a VM Ware user for Windows for years and have been running Parallels on my Mac (mainly because VM Ware was in Beta when I got Parallels). I'm curious if many folks have had experience with both, which may be better, pros and cons of ea...

Good Git repository viewer for Mac

Can anyone recommend a good repository viewer for Git, similar to gitk, that works on Mac OS X Leopard? (I'm not saying gitk doesn't work) Of course I would like a native Mac application, but as I haven't found any, what are the best options to gitk? I know about gitview, but I'm looking forward to evaluate as many alternatives as poss...

Install Python to match directory layout in OS X 10.5

The default Python install on OS X 10.5 is 2.5.1 with a fat 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past I have run apache and mysql to match this install in 32 bit mode (even stripping out the 64 bit stuff from apache to make it work). I want to upgrade Python to 64 bit. I am completely com...

InputManager on OS X

I was wondering if InputManagers are still part of Leopard and if there is a good example that would show me what are the use of it? ...

Is there anything similar to the OS X InputManager on Windows?

Is there anything similar on Windows what would achieve the same as the InputManager on OS X? ...

Objective-C: Passing around sets of data

A question that has pondered me for the last while. I am primarily a .net developer who dabbles in Objective-C for iPhone and Mac. How do you go about sending "datasets" between methods in objective-c. For example in C# you can populate a custom class with data and pass it around in a List of type custom class. EG if you had a customer ...

Change templates in XCode

How would I change the initial templates created by XCode when creating a new Cocoa Class. I am referring to the comments and class name created when using XCode's new class wizard. ...

What are some useful TextMate features?

I noticed that many people here use TextMate for coding on OS X. I've recently started using it, and although I like its minimalistic interface, it makes it harder to stumble upon cool features if you don't know what you're looking for. So, what feature have you found most helpful for coding (mainly in Python)? Are there any third-party...

Mac OS X: What is the best way to estimate the code & static data size of program?

I want to be able to get an estimate of how much code & static data is used by my C++ program? Is there a way to find this out by looking at the executable or object files? Or perhaps something I can do at runtime? Will otool help? ...

How do I make bash reverse-search work in Terminal.app without it displaying garbled output?

Using Terminal.app on OS X 10.5, often you see the commands get garbled when you do a reverse-search with Bash. Is there some kind of termcap or perhaps a bash shopt command that can fix this? It is very annoying. Steps to reproduce: Open Terminal.app, reverse-search to a longish command. Hit <ctrl>-E once you've found the command...

What are the alternatives to using phpMyAdmin?

I've used phpMyAdmin for a while now - it gets the job done but it is very clunky and outdated, and has many features that I don't need. I'm looking for either a web based or (preferably) an OS X native alternative that is easy to use and isn't heavy on features. Is there any programs out there that fit the bill? ...

XCode equivalent of ' __asm int 3 / DebugBreak() / Halt ?

What's the instruction to cause a hard-break in XCode? For example under Visual Studio I could do '_asm int 3' or 'DebugBreak()'. Under some GCC implementations it's asm("break 0") or asm("trap"). I've tried various combos under XCode without any luck. (inline assembler works fine so it's not a syntax issue). For reference this is for ...

What's a good way to write a Cocoa front-end to an Erlang application?

I'm exploring the possibility of writing an application in Erlang, but it would need to have a portion written in Cocoa (presumably Objective-C). I'd like the front-end and back-end to be able to communicate easily. How can this best be done? I can think of using C ports and connected processes, but I think I'd like a reverse situation ...

Error Code Reference for OSX/Cocoa

If I get an error code result from a Cocoa function, is there any easy way to figure out what it means (other than by grepping through all the .h files in the framework bundles)? ...

How to take screenshot in Mac OS X using Cocoa or C++

How to take screenshot programmically of desktop area in Mac OS X ? ...