I just purchased a new MacBook Pro with 10.7 Lion and installed Xcode 4 (as it is the only version 10.7 supports). But, to support older versions of the software that I develop for, I need 10.6 and Xcode 3.x as well. I understand that I can set up a dual boot for both OSs. That is not the...
In the latest version of the company's software in which I develop C++ cross-platform plugins, they now require MacOS 10.5 and Xcode 3.1 in order to build a multi-target, 32/64-bit dylib plugin for Mac. I've already asked the company how I would go about using Cocoa instead of Carbon for...
I eventually found something but it took about twenty variations on wording (in the end, since the current user's Library:Preferences was my target, that helped).
So, here's my little code - works great:
#include "Folders.h"
// METHODS: MacUserPrefs
// Get Users Preferences folder...
On a multi-user machine, how would one get the current user's folder path (i.e.: /Users/<user>) in Carbon only (Xcode C++). Seems that using environmental variables (getenv()) returns nothing for "PWD".
Thanks,
Robert
Guess that I will find out this week. I've just ordered MacOS 10.5.1 online and will purchase a new external harddrive in the meantime. Sounds like I should be able to run the software installed on the internal drive while booted to the external OS which is okay by me. :)
Thanks,
Robert
Since I do development, I want to keep my iMac G5 at 10.4.11 (Tiger) while having 10.5.2 (Leopard) on an external drive for booting and customer support (in the meantime anyways - at some point, I may move the internal to Leopard and keep a version of Tiger on the external drive for customer...
Must the "path:to:folder" be in the older HFS format (Macintosh HD:Applications:...) or can it also work with the newer format (/Applications/...)? I'm not getting a finder with the newer format but it may be either this or that it also requires the "/Volumes/Macintosh HD" be prepended (?). I...
Thank you very much! I'll give the referenced code using the given AppleScript templates a try as soon as possible (lots of sleeve tugging in all directions at the moment).
Anyone have code (or links thereof) to do this - Open a Finder window to display a file/folder from an application? I understand that AppleEvent is involved here - but it sure would be nice to have some code that exemplified this.
Please, no Cocoa, no Objective-C.
Thanks
Hmmmm. I have a strange problem. The application for which I develop plugins seems to have changed its QuickTime image support from one version to the next. In all previous versions (v 10.1 back), the PICT images with alpha transparency extracted from Resource Fork data work fairly well. In...
Nobody? I have not yet found a reason for this crash. It is very particular and *only* UB. Even a non-recursive sort (CombSort) has the same results. This makes no sense at all. If the files are moved from this particular folder, no crash. If the folders are moved from this particular...
Just to add: The UB crash is the same test that doesn't elsewhere. Here's the code for your perusal:
// Alphanumerically QuickSort by content name (String path)
//*---------------------------------------------------------------------------*
void RuntimeItem::QSortRTI(RuntimeItem* rti, LONG...
Hello all,
This is very odd. In order to do an alphanumeric sort of folders/files in a tree, I coded my own little QSort. Only the data between the items is swapped - no pointers are harmed.
This was heavily tested on Windows 32|64-bit and MacOS PPC (CodeWarrior) using the same...