Yes, I know the OS itself does
I meant that there's no built in command to accomplish it.
My intention with the lib is to create a way of interacting with the underlaying objects and add some functionality that might be used a lot or would be difficult to accomplish with simple commands.
I doubt if a lot of user will add such toolbar customization but it's not that difficult with the commands to send a message to an object.
CocoaMessage(0, TB_ID, "setAllowsUserCustomization:", #True)
CocoaMessage(0, TB_ID, "setAutosavesConfiguration:", #True)
I especially added debug functionality to these lower level commands like CocoaMessage() to make 'playing' with them easier.
If you use a selector that the object can't respond to, the debugger shows an error message. Without the debugger error it would simply compile and crash.
The main problem is that Cocoa works a lot with target / action or delegates and those concepts are very strange to PureBasic.
Fred does a great job wrapping things so PureBasic can work with Cocoa but adding custom objects like for example an NSSearchField object would be difficult since it doesn't post any events to the event queue.