Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
David Richardson
@enquora
You won’t be able to host non-Apple Silicon macOS versions in a VM though.
Asahi Linux is a Debian variant designed for ARM Macs and apparently running minimally on Apple Silicon. Video drivers are the biggest challenge (as one might expect) - it’s not clear if the new M1 variants add extra challenges in that department.
David Richardson
@enquora
I’ve just updated my main macOS instance to Monterey. Means no access to Xcode 12 unless I set up a Big Sur VM
Somewhat disappointed by the absence of a Mac mini Pro announcement Monday.
daboe01
@daboe01
@didierkorthoudt welcome back!
Didier Korthoudt
@didierkorthoudt
@daboe01 Thank you ! I hope this is the last (too long) break ! I still remember I have some little things to finish… ;-)
Michael Bach
@michaelbach
;-)
Martin Carlberg
@mrcarlberg
@didierkorthoudt The Node version is supporting sandboxed versions of Cappuccino that is not installed globally in the narwhal directory or /usr/local/bin. This is done by introducing the jake dist command. This means you can have an unlimited number of versions at the same time. You can read more about it on the wiki under the title Install from source without install with npm: https://github.com/cappuccino/cappuccino/wiki/node
Didier Korthoudt
@didierkorthoudt
@mrcarlberg Thank you ! This should help me merging day-to-day working environment and Cappuccino dev environment. My future M1 MBP is now ordered and I’m now waiting for it… 😉
Didier Korthoudt
@didierkorthoudt
@mrcarlberg How this copes with capp_env ? Which method should I use ?
Didier Korthoudt
@didierkorthoudt

@mrcarlberg Trying the pointed info on the wiki, I’ve followed the installation instructions and, when trying capp gen HelloWorld, I get the following error :

                        throw new Error("Could not load file at " + aURL + (compilingFileUrl ? " when compiling " + compilingFileUrl : "") + "\nwith includeURLs: " + StaticResource.includeURLs());

Any idea why ?
This is tried on my current system, just to be sure it could work on the future M1Max MBP…

Vasilis Gkanis
@vasg77_twitter
Is something wrong with the CPButton class? I can not longer add an image to a button.
I examine the html code, and the img tag is missing
Vasilis Gkanis
@vasg77_twitter
I found the problem with the image
The following code does not work
[button setImage:image];
[button setBordered:NO];
but, if I reverse the order, it works!!
Now, can I also set the title of button when I am using an image as background?
I tried to setTitle after I have set the image, but in vain
Martin Carlberg
@mrcarlberg
@didierkorthoudt you should have more lines from that error? The result of this line should be somewhere later in the console?
Didier Korthoudt
@didierkorthoudt
@vasg77_twitter I’ll have a look ASAP
Didier Korthoudt
@didierkorthoudt
@mrcarlberg Here is the complete trace :
sgi-mac20:~ u029386$ capp gen HelloWorld
/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3946
                        throw new Error("Could not load file at " + aURL + (compilingFileUrl ? " when compiling " + compilingFileUrl : "") + "\nwith includeURLs: " + StaticResource.includeURLs());
                        ^

Error: Could not load file at file:/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/dist/cappuccino/lib/capp/main.j
with includeURLs: /Users/u029386/Frameworks/,/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/dist/cappuccino/Frameworks/
    at completed (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3946:31)
    at resolveResourceComponents (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3490:24)
    at Array.<anonymous> (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3487:21)
    at EventDispatcher.dispatchEvent (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:730:50)
    at resolveStaticResource (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3151:36)
    at onfailure (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:3199:17)
    at EventDispatcher.dispatchEvent (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:733:13)
    at determineAndDispatchHTTPRequestEvents (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:973:29)
    at XMLHttpRequest.CFHTTPRequest._stateChangeHandler [as onreadystatechange] (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:800:13)
    at Immediate.<anonymous> (/Users/u029386/.npm/lib/node_modules/@objj/cappuccino/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js:628:53)
David Richardson
@enquora

Safari 15 has broken disclosure indicators, at least in CPOutlineView. They are stuck closed. This is using macOS 12, second release candidate.

Anyone using the Safari 15 preview under Big Sur who can test?

David Richardson
@enquora
The mainMenuBar object is not available in the AppController’s awakeFromCib method. Is this expected behaviour or a bug in our application setup and loading cycle? If expected, can anyone explain why it isn’t availbe even though the cib is finished loading at this point?
Martin Carlberg
@mrcarlberg
@enquora I don't see any reason why the main menu bar should not be available at awakeFromCib:
@didierkorthoudt I will take a look why this is happening with your Node version.
enquora
@enquora:matrix.org
[m]
I don’t either. Nevertheless, it is nil. When hiding it, it’s necessary to do so in applicationDidFinishLaunching. I haven’t checked behaviour in an Objective-C app, but this smells like a bug. Which may be causing other problems too. It also looks confusing to newcomers to set the window to full browser size in awakeFromCib, but to hide the app menu in applicationDidFinishLaunching!
Martin Carlberg
@mrcarlberg

@enquora A quick check in CPMenu.j:

- (void)awakeFromCib
{
    if (_name === @"_CPMainMenu")
    {
        [self _setMenuName:@"CPMainMenu"];
        [CPMenu setMenuBarVisible:YES];
    }
}

This means that the mainMenu is set in awakeFromCib:. I think this is a bug as I should already be set when awakeFromCib: methods are called. Your awakeFromCib: is called before this one is but it could have been called after. There is not order on when they are called.

Martin Carlberg
@mrcarlberg
@didierkorthoudt It looks like there is a problem when installing from npm. Try use the instructions under the title: Install from source without install with npm
David Richardson
@enquora
@mrcarlberg I assume the intention is to track the current LTS version of Node (now version 16)?
David Richardson
@enquora
Curiously, a one-day gap exists between an LTS version going into maintenance mode and the next LTS version becoming active.
David Richardson
@enquora
Does anyone with a good memory know why XcodeCapp uses a third-party NSProgressIndicator?

Similarly, the XcodeCapp code seems to use Python to execute several trivial shell operations. I have a vague memory that a Python package was once used to create and manage Xcode xcodeproj files, although this is no longer the case. This needs to be fixed, as the Python runtime referenced is Python 2, which has been deprecated for some time and is likely to disappear from the core OS distribution at any time.

Can anyone confirm my memory of this?

Martin Carlberg
@mrcarlberg
@enquora Yes, Node version 16 is a good version to use now. Version 14 does also work right now but the target is 16.
@enquora I have not been working a lot with the code in XcodeCapp so I'm not sure why. Maybe someone else has any idea why? But as you say Python2 is kind of old...
Martin Carlberg
@mrcarlberg
And I guess a third-party NSProgressIndicator might not be necessary to use
David Richardson
@enquora
There’s no way to set the representedObject for a menuItem in IB, is there?
David Richardson
@enquora
@mrcarlberg Is the need to @import viewcontrollers in code even though they might be referenced only in xibs a fundamental limitation of our compiler or something that just needs some effort behind it?
The runtime throws an error that it can’t reference the controller class - unless it’s @imported somewhere, such as the app controller or delegate.
David Richardson
@enquora

To my mind, IB and the productivity improvements it brings are a ‘unique selling proposition’ which we would be wise to promote (yes, I’m aware it can cause commit clashes when used in some circumstances, and many will complain about that).

Nevertheless, I regularly forget this requirement and routinely spend several hours debugging/remembering the cause. This isn’t the sort of experience we want newcomers to have.

Our main app is white-labelled for multiple users and I’m refactoring just now to make it more designer/junior developer friendly for quick modification to accommodate client quirks.
Martin Carlberg
@mrcarlberg
@enquora @import is currently the only way to tell the runtime to load a class that is referenced dynamic from for example a xib. It is not anything that is handled by the compiler but maybe nib2cib could track referenced classes in the cib file and the framework could load them when the cib is loaded.
daboe01
@daboe01

Safari 15 has broken disclosure indicators, at least in CPOutlineView. They are stuck closed. This is using macOS 12, second release candidate.

Anyone using the Safari 15 preview under Big Sur who can test?

@enquora:matrix.org i do not see any issues on safari 15.1 with the kitchen sink app on https://cappuccino-testbook.5apps.com/#ThemeKitchenSink

David Richardson
@enquora
@daboe01 I’m in the process of refactoring a view using CPOutlineView and will look more closely at this. It’s entirely possible something in the view delegate is only half implemented in this app and causing problems. Strange it should have worked properly until Safari 15 though.
David Richardson
@enquora

A vector version of the XcodeCapp logo is needed for ongoing maintenance and isn’t present in the repo. Does anyone remember who did the original artwork? It’s not obvious from the commit history.

I have autotraced the raster version and it’s a good starting point for cleanup - but it would be nice to have the original.

Perhaps I should rephrase as “who is likely to have produced the original”.
Gustavo "Mucho Love"
@mucholove

So I'm trying to install Cappuccino NPM from source—and I got this error.

cappuccino % jake install
(in /Users/gtavares/cappuccino)
Error on line 53 of file [unknown]
Error: require error: couldn't find "fs"

My guess is that Jake was not installed for npm. Fair enough so I do:

   jake install

And now I get:

   cappuccino % jake install
   jake aborted.
  ReferenceError: ObjectiveJ is not defined

Where am I screwing up??

Martin Carlberg
@mrcarlberg
@mucholove Do you have the correct PATH to the tools? What if you type which capp?
Gustavo "Mucho Love"
@mucholove
When I do which capp I get capp not found
OK. Got it. Since I followed the tutorial, the npm install only runs locally and I needed to run npm -g install to place it in the ~/.npm/bin