Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    MaxOS X file access???

    SDK Help
    0
    5
    327
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 15/06/2008 at 23:38, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R9-R10.5 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Okay, explain this to me like I'ma five year old and how I can work around it. All data files are always written to the plugin folder - except on Windows Vista where this is not possible they are written to the "<OS>:\Users<username>\Kuroyume\... folder".

      Still, half of this message makes no sense to me. Where would I write 'network home directory' data? And the files being written to are MY files - preferences and whatnot. So, yes, I should have access to them. Whether or not the rights are given to User to let my plugin write into some folder or another is not my fault (see Windows Vista above). Sooooo....

      Here's the user's message:

      _We have massive problems getting Interposer to work when the User is not the Admin User due to the need of interPoser to write to files and directories it shouldnt have access to.

      We work with network home directories. Do you have a tutorial or such that explains how to set up InterPoser Pro to work with network home folders?

      C4D was a bit tricky to set up, but now works very nicely even not installed localy on every machine. We would like to use InterPoser too, but so far where unable to get it to run (as a user). The Programm allways want access to folders it shouldnt have acces to anyways.

      Running it as admin or root is NOT an option. Help would be greatly appreciated.

      If no tutorial is available, could you tell me all files and folders (in the InterPoser and C4D folders) InterPoser needs r/w access to in order to get interPoser to run? I then might be able to work around this behavior._

      Thanks,

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 16/06/2008 at 00:35, xxxxxxxx wrote:

        I should add, since I clipped some personal information out of the message, that this involves MacOS X. As far as I can tell, we're discussing MacOS X Server with respect to the 'network home directories'.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 16/06/2008 at 12:51, xxxxxxxx wrote:

          It appears that problems with non-Admin users is that folder permissions may not be sufficient. If there is an Admin account on the computer then this can be rectified. It not then I will need to add a means for the user to specify an alternate storage folder for iPP data.

          Not sure if this will suffice for these 'network home directories' though.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 16/06/2008 at 14:22, xxxxxxxx wrote:

            Is there any simple way to determine the current user or user folder for MacOSX? For Vista, I'm getting the system environment variable (UserProfile). Don't know if there is anything similar on MacOSX. Dan, my MacOSX man? 🙂

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 16/06/2008 at 19:20, xxxxxxxx wrote:

              This seems to work nicely - but finding it was like pulling teeth with chopsticks. 😉

              > #include "Folders.h" \> \> // METHODS: MacUserPrefs \> // Open Resource Fork \> //\*---------------------------------------------------------------------------\* \> String MacUserPrefs::GetUserPrefs() \> //\*---------------------------------------------------------------------------\* \> { \>      // ask MacOS to find the users preferences folder (/Users/{username}/Library/Preferences/ on US-english MacOS X) \>      // see http://developer.apple.com/samplecode/MoreFilesX/listing2.html \>      // and http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html#//apple_ref/c/func/FSFindFolder \>      // and http://developer.apple.com/samplecode/FileNotification/listing1.html \>      FSRef     fsRef; \>      char     path[1024]; \>      OSErr     tError =     noErr; \> \>      tError =               FSFindFolder(kOnAppropriateDisk, kPreferencesFolderType, kDontCreateFolder, &fsRef;); \>      tError =               FSRefMakePath(&fsRef;, (UInt8\* )path, 1024); \>      return     String(path); \> }

              1 Reply Last reply Reply Quote 0
              • First post
                Last post