Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • You're way off base on this one.

    I've been using Mac for Perl dev for about 6-7 years (whenever OS X 10.1 came out) and consider it first class. The Mac:: packages are largely irrelevant -- Carbon is a legacy API from the 90s, about as relevant today as a Win95-specific API would be I suppose. If you used a Win95:: library, you'd get similar complaints from users of a modern Windows OS.

    The "flood" of Win32:: packages is because you need those platform-specific hacks to get anything done on Windows Perl. N

    • I see this most because of File::HomeDir.

      So tell me this, without using any Mac:: modules, where is your documents directory?

      • ~/Documents

        • Let me rephrase, where is everybody's documents directory?

          • In Cocoa, the correct answer according to Stack Overflow is:

            NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);

            • No, not NSLibraryDirectory. It's NSDocumentDirectory. From XCode docs:

              These constants specify the location of a variety of directories.
              typedef enum {
                 NSApplicationDirectory = 1,
                 NSDesktopDirectory = 12,
                 NSCachesDirectory = 13,
                 NSApplicationSupportDirectory = 14,
                 NSDownloadsDirectory = 15,
                 NSAllApplicationsDirectory = 100,
                 NSAllLibrariesDirectory = 101
              } NSSearchPathDirectory;