mac

Resizing views in Interface Builder

I'm having trouble visualizing something. Let say I have three views inside a scrollview with some other content. Top, buttons and image. buttons and image are both inside top. Top does NOT fill up the scrollview, however, buttons and image DO fill up top. Top has a maximum size determined at runtime, but it might not all be visible. Th...

Filemaker 9 with SMTP (or Thunderbird on Mac) for free?

Background: Filemaker Pro 10+ have gained functionality to send emails using SendMail via SMTP. There are expensive (relative to total FileMaker licensing cost) plugins that can do SMTP on FMP earlier than 10, but that investment is not an option. I have set up a network that I'm managing (I'm not mainly a developer) to use Thunderbird...

Unmangling C++ names on Mac 10.5

I'm printing out the stack trace in my app at various points to debug a problem, which works fine except that the symbol names of my c++ functions are still mangled. On linux I use c++filt to convert them to something more readable... on mac... it doesn't work?!?! macbook:matthew$ c++filt _ZN10GSemaphore6UnlockEv _ZN10GSemaphore6UnlockE...

Testing for Inactivity in Python on Mac

Is there a way to test, using Python, how long the system has been idle on Mac? Or, failing that, even if the system is currently idle? Answer Using the information from the accepted solution, here is an ugly but functional and fairly efficient function for the job: from subprocess import * def idleTime(): '''Return idle time in ...

Determine current Mac Chrome web page using Python

Is there a way to determine programmatically, using Python, which web page is currently active in Google Chrome? ...

MacOS. SDL. How to hide fullscreen window

Is this possible to hide fullscreen window (SDL based application)? How can I do this? ...

Cornerstone vs Versions for Mac OS X

I've been using svn on the command line for 5+ years, but I'm thinking of switching to GUI. The two kings of Mac subversion apps seem to be Versions and Cornerstone. Most of the reviews/comments I've seen comparing the two are from way back in 2008, when Cornerstone was first released. It's now 2010, and both apps have undergone signifi...

Develop iPhone application remotely?

4 java developers are new to iPod Touch/iPhone app development. They have an idea for an app. They have never used Xcode or Macs before. Instead of spending money for a new iMac or Mac Mini for each of them, my boss would like to sell them a $999 Apple server, hosted at a facility connected a single T1 line, and have all 4 people work...

Can I create a custom plist structure definition?

When editing plist files in Xcode, it can detect the type of plist and show human-readable strings to make it more easy to edit the file. The Info.plist, for example. Thanks to This question, I found the (or a) place where it stores that structure definition, as InfoPlistStructDefs.xcodeplugin. If I put my own file in there, however, ...

What's MAC address ? What is a unique ID for a PC ?

I have a PC with dual cores, it has two MAC addresses : 00-1D.... & 00-21..... Are these IDs for the two cores ? If I want to get hold of a unique ID for this PC, how to get it with a Java call ? Maybe there is something in Java like "System.getId()" ? Frank ...

NSFetchedResultsController Mac OSX Cocoa equivalent

Hi! I am porting some Core Data code from iPhone to Mac OS X. PRoblem is that Core Data Framework on Mac OS X does not have NSFetchedResultsController.h nor NSFetchedResultsControllerDelagete protocol declared. At least I am not able to force Cocoa application to see this class even if I drag Core Framework from iPhone project to link w...

Different cursor formats in IOFrameBufferShared

I'm reading the moust cursor pixmap data from the StdFBShmem_t structure, as defined in the IOFrameBufferShared API. Everything works fine, 90% of the time. However, I have noticed that some applications on the Mac set a cursor in a different format. According to the documentation for the data structures, the cursor pixmap format should...

What is the best way to edit a file, then commit, using "VERSIONS"?

I have been able to get the remote files on a mac, but I am having trouble EDITING, then seeing how to "commit" back to the remote server... I was able to follow tortoise quite intuitively but do not see where to check out files and then edit, then check back in ... ...

How to determine, upon launch, whether the app crashed the last time it quit?

One of the crash reporter frameworks I've found does it like this: If there exist crash reports in the ~/Library/Logs/CrashReporter folder for the app, it determines that a crash occurred before. Then it allows the user to send the developer the crash log. And the finally, it deletes those logs. It is this deletion that is bothering me....

Compiler options wrong with python setup.py

I'm trying to install matplotlib on my mac setup. I find that setup.py has inaccurate flags, in particular the isysroot points to an earlier SDK. Where does setup.py get its info and how can i fix it? I'm on MacOS 10.5.8, XCode 3.1.2 and Python 2.6 (default config was 2.5) ...

Keyboard and Bluetooth killed when establishing FTDI USB Serial connection

Okay, when I establish a connection using LabVIEW or Python to my Arduino Duemilanove (ATMega328) either my Bluetooth or keyboard is killed. I am simply trying to establish a connection to /dev/cu.usbserial-A9007UZh (or tty.usbserial-A9007UZh, but that seems to kill the keyboard or bluetooth even after Terminal is shut down when using p...

std::string constructor corrupts pointer

I have an Entity class, which contains 3 pointers: m_rigidBody, m_entity, and m_parent. Somewhere in Entity::setModel(std::string model), it's crashing. Apparently, this is caused by bad data in m_entity. The weird thing is that I nulled it in the constructor and haven't touched it since then. I debugged it and put a watchpoint on it, an...

Address book APi

hi how an i get phone no of a given record using xcode i am able to get first name and last name using ABRecordRef *person_record = CFArrayGetValueAtIndex(people,i); NSString *first_name = ABRecordCopyValue(person_record,kABPersonFirstNameProperty); NSString *last_name = ABRecordCopyValue(person_record,kABPersonLastNameProp...

Eclipse 3.5 (Cocoa) slowing down irregularly after some time

Hi, I'd like to hear, if anyone else encounters the same problems, and doesn't use Google's GWT (2.0) plugins: Sometimes, my Eclipse 3.5 (Cocoa) slows down after some time of usage (>=30 minutes), so that things like maximizing an editor or moving the splitters becomes unbearably slow (reacting only after several seconds). After an Ecl...

Cut and paste out of/ into text fields in a separate window doesn't work

I have a Macintosh Mozilla plugin which puts up a separate window for login information. It seems to work fine, it gets keyboard events like typing and hitting return to hit the default button. HOWEVER, it doesn't seem to get cut and paste events. When I hit Cmd-v, the edit menu flashes, but nothing happnes. Is this a problem with my re...