Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:10
    cappbot commented #2995
  • 13:45
    cappbot labeled #2995
  • 13:45
    cappbot milestoned #2995
  • 13:31
    didierkorthoudt commented #2971
  • 13:30
    didierkorthoudt opened #2995
  • Jul 30 18:40
    enquora closed #2915
  • Jul 30 18:40
    enquora commented #2915
  • Jul 30 18:38
    enquora commented #2726
  • Jul 30 15:41
    didierkorthoudt commented #2971
  • Jul 30 10:16
    pcplcprogrammer starred cappuccino/cappuccino
  • Jul 30 04:54
    daboe01 commented #2726
  • Jul 30 04:49
    daboe01 commented #2915
  • Jul 29 18:10
    cappbot commented #2994
  • Jul 29 18:10
    cappbot labeled #2994
  • Jul 29 18:10
    cappbot labeled #2994
  • Jul 29 18:10
    cappbot unlabeled #2994
  • Jul 29 17:34
    daboe01 commented #2994
  • Jul 29 16:31
    cappbot commented #2994
  • Jul 29 16:23
    didierkorthoudt commented #2969
  • Jul 29 16:14
    cappbot labeled #2994
Thrud The Barbarian
@ThrudTheBarbarian
Yep. If I comment out the two selection lines above, and action the method that causes the update from the same window, I see the table update.
I've called reloadData myself a time or two :) This was the first time that window wasn't in focus though...
Michael Bach
@michaelbach

CPUserDefaultsController… I'm using it to store settings, which turn out to be specific for browser (because they're presumably in the HTML Web Storage), ok. But I find that two (slightly different) Cappuccino programs seem to share the same standardUserDefaults. How can I make it unique? It doesn't seem to be based on CPBundleName
in Info.plist. Please advise. Anyway: have a nice Sunday!

Edit later: it seems to be based on CPApplicationDomain and CPGlobalDomain. How do I set them?

Michael Bach
@michaelbach
CPUserDefaultsController, answering my own question: It looks like I have to add a CPBundleIdentifierkey to Info.plist. Agree?
daboe01
@daboe01
@michaelbach yes, take a look at line 42 of CPUserDefaults.j
@ThrudTheBarbarian @michaelbach looks like a redraw issue to me. never seen it myself, though as i mostly use a bridged window.
Michael Bach
@michaelbach
@daboe01 yes, thank you, "line 42 of CPUserDefaults.j" that's where I found it too. And my testing shows that two programs with different CPBundleIdentifierkey indeed do not interfere with each other's settings.
Thrud The Barbarian
@ThrudTheBarbarian

@daboe01 I'm using a bridged window too ...

    _win = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() 
                                       styleMask:CPBorderlessBridgeWindowMask];

It seems to be focus-related, so you won't see it if you're using one browser window for the app - here I have the app in one window, and I wanted a different user to be able to trigger a visual change-notification, so ...

I had two browser windows, both running the same application, and I'd do something in window-1 which communicated over the socket to a server, which in turn communicated to window-2, which failed to update unless I clicked in it.

daboe01
@daboe01
@ThrudTheBarbarian so you are running two instances of your app on the same machine? you could nail down where the issue is by logging on the console rather than pushing to the gui.
Thrud The Barbarian
@ThrudTheBarbarian

@daboe01 I did do some of that (see the post above). After the call to reloadData I can see that it queries the number of rows in the table, but then it stops and doesn't call the other two methods mentioned, until focus is applied that is.

I have a demo to give today :) But one thing I might try otherwise is to pump the events - my web socket wrapper class does this but only calls for one pass through the event loop, vis:

    _ws.onmessage = function(event)
        {
        if (event.data instanceof ArrayBuffer)
            {
               if (_delegateMethods & _WSGetData)
                {
                var bytes = new Uint8Array(event.data);
                [_delegate socket:self gotDataMsg:bytes];
                }
            }
        else if (_delegateMethods & _WSGetText)
            [_delegate socket:self gotTextMsg:event.data];

        [[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
        };

It's possible that's why I'm getting my one table delegate call, and maybe bumping that up a bit would solve the issue. I don't want to fiddle with anything right now though... :)

Michael Bach
@michaelbach
Good luck with the demo!
David Richardson
@enquora

Is anyone using macOS 11.5? After updating, and coming back to Capp after several months, nib2cib is refusing to generate cibs, and generating no indication of problems (including using —verbose). Is anyone else seeing problems on this macOS version?

This seems to be a problem on High Sierra too. Any suggestions on debugging nib2cib?

David Richardson
@enquora
Failing on a new boilerplate app created from NibApplication template too
Thrud The Barbarian
@ThrudTheBarbarian
@michaelbach Thank you :) It went well. The first question was "How did you make all of that UI in 4 weeks ?", and then my boss took a note of this web framework I started singing the praises of.
Martin Carlberg
@mrcarlberg
@ThrudTheBarbarian Glad to hear that your demo went well.
@enquora Can you please provide more info on your nib2cib problems?
Also, good progress today on building the frameworks on pure Node.js without Narwhal. Foundation and AppKit including Aristo 1/2 themes are all building. Tools and Test are next. Creating a nice npm module is high on the todo list too.
David Richardson
@enquora

@mrcarlberg openjdk8, latest master.
`
nib2cib --verbose Resources/MainWindow.xib
nib2cib v0.9.10


Input : /Users/davidr/Development/Cappuccino/TestApp/Resources/MainWindow.xib
Output : /Users/davidr/Development/Cappuccino/TestApp/Resources/MainWindow.cib
Application : /Users/davidr/Development/Cappuccino/TestApp
Frameworks : Foundation, AppKit*, Objective-J
Default theme : Aristo2
Aux themes :
Config file : /Users/davidr/Development/Cappuccino/TestApp/Info.plist
System Font : 12px Arial, sans-serif

NSClasses :

Auto-detected Cocoa nib or xib File
Converting xib file to plist…
`

no other output, no cib.

David Richardson
@enquora
@mrcarlberg A completely fresh installation in a new VM running High Sierra works as expected. I’d like to debug what the problem on my non-VM installations is, though. Debugging suggestions welcome.
David Richardson
@enquora

@mrcarlberg Is the node work something realistically achievable by a single person (yourself)? I’d like to begin grokking the toolchain enough to work on it at this level but won’t have any time until mid-August. At the moment, it’s simply unclear where to begin.

My preference is to look a something almost working to learn how the pieces fit together - but if more hands are required on deck, I will need to make time (outside work on our main app).

Also, XcodeCapp has enough problems all by itself to keep my toolchain time fully booked :-(
Its predilection for deleting Xcode project files seems to be getting worse
Martin Carlberg
@mrcarlberg
@enquora For your nib2cib problem check out the last commit I have in my Cappuccino branch nib2cib_stuck_on_ibtool_outputon https://github.com/mrcarlberg/cappuccino (https://github.com/mrcarlberg/cappuccino/tree/nib2cib_stuck_on_ibtool_output). I don't know if it will help but it could work.....
David Richardson
@enquora
forgot to mention version of Xcode I’m using - mostly the current beta of 13, sometimes release version of 12. The VM was on High Sierra, so Xcode 10.1. will see if ibtool is the problem. thks.
Martin Carlberg
@mrcarlberg
@enquora More hands are always welcome. So please feel free to get your hands dirty. Right now I have a kid from the local University helping me with the Node build process. He will work full time on it for the next 4 weeks. It looks really promising....
David Richardson
@enquora

My biggest problem is still grokking the toolchain from an overall perspective. I don’t have the time just now to work through it all from first principles :-( If there are small discrete parts I can contribute to, that might work.

I do have a better understanding of XcodeCapp, and it is equally desperately in need of modernizing. Absent a way to quickly and fully understand the compiler and associated tools, it’s probably more effective for me to work on XcodeCapp.

XcodeCapp plays so badly with Xcode’s file saving it is becoming a serious obstacle to productivity - at least here!
Martin Carlberg
@mrcarlberg
Great! XcodeCapp could need some updates to work better so that is an excellent suggestion.
David Richardson
@enquora

@mrcarlberg After applying your Convertor.j patch nib2cib now complains it can’t convert the plist to a cib - that’s an improvement.

I haven’t worked with the Cappuccino toolchain for 3 months - since before WWDC and the release of Xcode 13. I’m so happy with the vim mode in it I haven’t used Xcode 12 much. Will switch back to it and investigate more.

fwiw, I’m noticing (for the first time) a significant number of m4 macro complaints during the autoconf phase of installation. Don’t know how long they’ve been present, but it’s one more concern with the Narwhal toolchain
David Richardson
@enquora
@mrcarlberg It’s ibtool Martin. Works fine with Xcode 12, with or without your patch. Under Xcode 13 we at least get an error, but it looks likely there are other problems. I have a installation of both, ready for testing. Suggestions on debugging the problem? Do we need to open an issue for this?
Martin Carlberg
@mrcarlberg
@enquora I have not yet installed Xcode 13 on my machine so I can't check if my xib files work. Have you tried to bump the file version in Xcode for the xib file?
Didier Korthoudt
@didierkorthoudt
@daboe01 Regarding #2984, I see the problem, I see that normally it’s managed by the new way of doing but something is bypassing it. Digging… BTW, hi everyone ! Back to life after so many difficulties, the last one being the flood we’ve had here in Liège, with water everywhere in the house…
Didier Korthoudt
@didierkorthoudt
@daboe01 Found where is the problem. Need to find a workaround that preserves Aristo2.
Michael Bach
@michaelbach
@didierkorthoudt Welcome here again! Very sorry to hear of your flood problems. Welcome all the more.
David Richardson
@enquora
@mrcarlberg I rushed to judgement yesterday - your Converter.j patch doesn’t fix the problem under Xcode 13
Thrud The Barbarian
@ThrudTheBarbarian
@didierkorthoudt commiserations on the water. Here on the West coast of the US, it's more fire we have to worry about. So far, so good [crosses fingers].
David Richardson
@enquora
@mrcarlberg The other problems I’m seeing are almost certainly artifacts of the last-merged CPBox changes. They don’t play at all well with enclosed controls and, afaik, haven’t been fixed. I’ve patched the changes out since then, but my installation may have fallen out of sync with this workflow.
This was discussed last year when the problem surfaced. Correct me if I’m wrong believing they weren’t corrected.
Converting IB files to plist format was, imo, an unwise decison - an original sin. Obviously we have more important tasks, though, than using the XML representations directly :-(
David Richardson
@enquora
Beta 4 of Xcode 13 was just released - will update and test later in the day
Thrud The Barbarian
@ThrudTheBarbarian
Question regarding CPTextView and placement within a CPScrollView. When I call setString on the CPTextView with a sufficiently large body of text that the scrollbar is realized (with the scrollbars set to only appear when necessary), the text is obscured by the scrollbar on the RHS. Is there something I have to do to tell the CPTextView that its content-view is smaller than the original size ?
daboe01
@daboe01
@didierkorthoudt i am so glad you are back :-)
@ThrudTheBarbarian you may have a look at the manual test of CPTextView. There is code in there how to put a textview in a scroll view.
Thrud The Barbarian
@ThrudTheBarbarian
@daboe01 Thanks :)
Didier Korthoudt
@didierkorthoudt
@daboe01 So do I 😉 I’ll first try to fix issues then going on with Aristo3. 🙂
daboe01
@daboe01
@mrcarlberg @cacaodev hi core devs, there are quite a few PRs that are ready to commit. can you please have a look, if time permits?
Martin Carlberg
@mrcarlberg
@didierkorthoudt Nice to have you back. :smiley: Sorry about all the water in your house. Must have been terrible :scream:
Didier Korthoudt
@didierkorthoudt
@mrcarlberg Well, yes indeed… We are now cleaning the house, after having to throw many many things… There will be many work to be done (all floors are to be renewed).
daboe01
@daboe01
@didierkorthoudt i am sorry to hear that.