Drawing using NS objects > Hints

Hey!

Is there documentation (besides Apple’s) about how to use NS objects? While using Skedge (:pray: thanks @Mark) to test some stuff I’m looking inside some plugins to understand how to draw and manipulate certain shapes but maybe some of you have recommendations about how to learn more about using them.

Thanks a lot!

With NS-objects you mean NSBezierPath? Looking that apples documentation and the code in plugins is probably the best way to learn that stuff.

You might want to read a tiny bit about objectiveC. (this might be a starting point: https://en.wikibooks.org/wiki/Programming_Mac_OS_X_with_Cocoa_for_Beginners/Objective_C,_the_language_and_its_advantages)

1 Like

Thanks Georg.

I guess NSString is also something I would need to know and they are not NSBezierPath. Am I right? I’ve read the documentation on Apple’s website and since it is written with a syntax that’s not Python I was bit confused. Since all plugins I’ve dug into are written in Python, as far as I see there’s an objectiveC syntax for Python, right?

I found looking into plugins really helpful but I was wondering if there’s some documentation about how to use it in Python.

Thanks.

I’ve seen that in Glyph’s API (Core) there’s this link to learn the basics of using objectiveC with Python https://pythonhosted.org/pyobjc/core/intro.html but it is no longer available. Is there something similar to this one?

This might help: https://pyobjc.readthedocs.io/en/latest/

1 Like

Great! Thanks again, Georg.