Giter Site home page Giter Site logo

Comments (4)

Tatsh avatar Tatsh commented on May 11, 2024 1

Go on the documentation page and ensure you click on Objective-C near the top. Avoid the Swift code reference. You can add ?language=objc to almost any page.

https://developer.apple.com/reference/appkit/nsmatrix/1436399-selectcellatrow?language=objc

This is just like how you called -[NSWindow initWithContentRect:styleMask:backing:defer:]:

matrix1.selectCellAtRowColumn(/* int */ row, /* int */ column)
matrix1.selectCellWithTag(/* int */ tag)

from jxa-cookbook.

Tatsh avatar Tatsh commented on May 11, 2024 1

I'm only using Vim for JXA stuff primarily because I just keep references open and this is a little easier than coding Objective-C (or Swift) without any help like Xcode would provide. Nothing will beat the auto-completion in ScriptEditor though. Never mind, it does not have completion for JavaScript and even still acts like you are in AppleScript mode. Really should get onto an Objective-C to JXA converter, much like this exists for Swift.

from jxa-cookbook.

Slavetz avatar Slavetz commented on May 11, 2024

Objective-C, of course!
All the time I was trying to guess how to write with JS Objective-C Bridge but looking SWIFT reference... facepalm
Thank you!
Can you recommend same more useful editor than ScriptEditor?

from jxa-cookbook.

Slavetz avatar Slavetz commented on May 11, 2024

Thanks for answers

from jxa-cookbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.