Jump to content


What's the suggested P4API for developing custom tool on MacOS

p4api macos custom tool

  • Please log in to reply
2 replies to this topic

#1 ytt1515234

ytt1515234

    Member

  • Members
  • PipPip
  • 13 posts

Posted 17 December 2019 - 12:02 PM

Hi,

I'm learning how to develop a custom tool in P4V on MacOS, but I'm not sure which P4API should I choose. I only have experience of making something with .Net P4API on Windows. I will be very grateful if you can show me a way.

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1192 posts

Posted 17 December 2019 - 04:06 PM

It depends on the tool.  If it's running a simple p4 command, you don't need any API beyond the CLI tool.  If it's something more complex but nothing graphical, I'd write a Python script using P4Python.  If it's a graphical tool where I needed to use Cocoa, I'd write it in Obj C (ugh) and use the C++ API.

#3 ytt1515234

ytt1515234

    Member

  • Members
  • PipPip
  • 13 posts

Posted 18 December 2019 - 08:07 AM

View PostSambwise, on 17 December 2019 - 04:06 PM, said:

It depends on the tool.  If it's running a simple p4 command, you don't need any API beyond the CLI tool.  If it's something more complex but nothing graphical, I'd write a Python script using P4Python.  If it's a graphical tool where I needed to use Cocoa, I'd write it in Obj C (ugh) and use the C++ API.

thanks a lot, I will develop a graphical tool with you suggestion





Also tagged with one or more of these keywords: p4api, macos, custom tool

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users