macoslib

Thanks to everyone (all five of you) involved in macoslib. I really appreciate your work.

If you’re targeting OS X, you really should check out macoslib and see what it can do for you. There are lots of examples to help you get started.

A recent commit has brought us a comprehensive NSUserNotificationCenter example (which was floating around in a forked project, AFAIR) and saved me a lot of work.

https://github.com/macoslib/macoslib

[quote=29380:@Gavin Smith]Thanks to everyone (all five of you) involved in macoslib. I really appreciate your work.
[/quote]
Couldn’t have said it better myself!

The macoslib isn’t bad but to be honest it is a real (huge) mess. :slight_smile:
I mostly use the MBS plugins for doing the same. It is less messy to play with. :slight_smile:

I also want to give every OS X developer a notch to try the OSX native controls of http://www.dethomsoft.com

I already have adapted two project with the native OS X listbox - finally those ugly old scrollbars are gone ;).
But all other controls are awesome too.

The dev is French speaking and very helpful. He already fixed a lot of bugs I encountered.
IMO a must have buy !!

[quote=29388:@Christoph De Vocht]The macoslib isn’t bad but to be honest it is a real (huge) mess. :slight_smile:
I mostly use the MBS plugins for doing the same. It is less messy to play with. :)[/quote]

I totally disagree.

[quote=29388:@Christoph De Vocht]
I also want to give every OS X developer a notch to try the OSX native controls of http://www.dethomsoft.com[/quote]

I agree with you here though - I’ve been trying some of his stuff out, very nice and reasonably priced (too cheap if you ask me!)

This has reminded me I wanted to add a pull for Massimo Valle’s sample NSStatusItem for menulets, so I have gone and done so.

Reference:

Does MacOSLib have support for gestures?

Not yet. Someone has to still make that effort.

I posted this project some time ago, no one was interested. It adds magnify and rotate events to a canvas. In the demo, the left does both magnify and rotate, the right is only magnify.
http://home.comcast.net/~trochoid/NSControlGesture8b.rbp.zip
(need to add bundle identifier)

Really what I wanted was to create custom gestures from touch events. This project does that but it’s not as clean. There’s no way to stop normal event flow after processing touches so the cursor wiggled around and I kept experimenting with different ways to fix that. I think this version finally fixes that by just moving the cursor to the same position, which also fixed mouse wheel events. Anyways, I could go on and on about the little fiddles; here’s the touch project with a custom simultaneous scale-rotate-translate gesture…
http://home.comcast.net/~trochoid/NSControlGesture8k.zip

There’s something wrong with the quote function of this forum: If I select text from one post and then use the “quote” button of another one’s post, the selected text is quoted under the wrong name, just as it happened above in my reply to Tuomo.

[quote=29380:@Gavin Smith]Thanks to everyone (all five of you) involved in macoslib. I really appreciate your work.

If you’re targeting OS X, you really should check out macoslib and see what it can do for you. There are lots of examples to help you get started.
https://github.com/macoslib/macoslib[/quote]

I’ve seen/heard good things about macoslib, but to be honest, i never knew where to start. Where are the docs? even rudimentary ones?

  1. For now, run the app in the IDE and try out the Examples from the menu. That’ll demo many of its features.
  2. Stéphane is working hard on a comprehensive, separate documentation and reference. So keep watching for updates.

Hi Thomas, I’ve a request about the tableview in macoslib… is it possible to implement the tableview example putting same pictures, controls or better container controls, in a tableview’s row ?
Thanks in advances

Luciano

I am the wrong one to ask. I hardly do any work on the UI classes, I’m more the low level guy.

Please make the suggestion via the “issues tracker”: https://github.com/macoslib/macoslib/issues

Thanks Thomas.
Thanks Jean-paul, but you forgot the link…

very interesting Jean-paul, but there is the possibility of having within of cell an html control or a conteiner control ?

@Gavin Smith and Albin Kiland: some day, we will make a marble statue for you both !

@ Christoph De Vocht: it is true that MBS plugins are great but they can be quite expensive too for some users. Advanced OS X functions should not be available only to people who can afford MBS plugins. Also, I really believe that an open project like macoslib can help people understanding how Xojo can use Carbon and Cocoa… and for free. Two different approaches.

There still will be a category of things that you will need a plugin for.
But there’s a lot you can get in macoslib.

[quote=29380:@Gavin Smith]If you’re targeting OS X, you really should check out macoslib and see what it can do for you. There are lots of examples to help you get started.

https://github.com/macoslib/macoslib [/quote]

I went to the page and downloaded the zip file, but now I am lost. How do I install MacOSLib in Xojo ? The page and the readme states “To use it in your project, open the macoslib.rbvcp file in the IDE, then select the “macoslib” folder inside, Copy it and Paste into your project.” but I could not figure how to add macoslib.rbvcp in the IDE.

Please forgive the ignorant. The disease can be cured by sharing knowledge. TIA

If you’ve downloaded the zip file, double-click the macoslib.rbvcp file to get started. This is a project containing lots of examples, modules and macoslib itself. Run the project and play with the examples to find out all the things you can do with it.

Now, to use that power in your own apps, you need to copy the macoslib folder in the Navigator (the list on the left hand side of Xojo) - don’t copy it from the Finder, it won’t work. Next, create your new project and paste the folder in. Now you can access MacOSLib’s functionality.

Hope that’s clearer for you.

Great ! Thank you.