by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 05 14:06
    daboe01 synchronize #2902
  • Jul 04 16:24
    enquora commented #2901
  • Jul 04 08:10
    cappbot commented #2901
  • Jul 04 08:10
    cappbot labeled #2901
  • Jul 04 07:55
    daboe01 commented #2901
  • Jul 03 19:55
    cappbot labeled #2901
  • Jul 03 19:55
    cappbot unlabeled #2901
  • Jul 03 19:55
    cappbot commented #2902
  • Jul 03 19:55
    cappbot labeled #2902
  • Jul 03 19:55
    cappbot labeled #2902
  • Jul 03 19:55
    cappbot labeled #2903
  • Jul 03 19:55
    cappbot labeled #2903
  • Jul 03 19:55
    cappbot unlabeled #2903
  • Jul 03 19:31
    daboe01 commented #2902
  • Jul 03 19:31
    daboe01 commented #2903
  • Jul 03 19:30
    daboe01 commented #2901
  • Jul 03 19:27
    daboe01 synchronize #2902
  • Jul 03 19:10
    daboe01 synchronize #2902
  • Jul 03 17:43
    daboe01 synchronize #2903
  • Jul 03 17:36
    daboe01 synchronize #2902
David Richardson
@enquora
I’m using a CPSplitView with master/detail divisions, a CPScrollView for the detail and swapping in views loaded from other cibs. And having no end of trouble getting the swapped-in views sized correctly. Does anyone have advice or experience to offer?
David Richardson
@enquora

What controls wrap/line length in CPTextView?

@daboe01 Am I remembering correctly you mentioning several months ago CPTextView now can now contain arbitrary objects (images and tables)?

daboe01
@daboe01

I’m using a CPSplitView with master/detail divisions, a CPScrollView for the detail and swapping in views loaded from other cibs. And having no end of trouble getting the swapped-in views sized correctly. Does anyone have advice or experience to offer?

i am also seeing issues with autosave in CPSplitView since version 1.0

daboe01
@daboe01

What controls wrap/line length in CPTextView?

@daboe01 Am I remembering correctly you mentioning several months ago CPTextView now can now contain arbitrary objects (images and tables)?

wrap line length calculation is done in CPTypesetter.j

@enquora yes, you can embed views in CPTextViews. This feature is exposed in the manual test
David Richardson
@enquora
Cappuccino source installed successfully on Big Sur.
timhowell01
@timhowell01
@enquora That's good news. I'll be interested to know if XcodeCapp works properly. Also curious if Xcode 12 seems less buggy than Xcode 11.
David Richardson
@enquora

I’ll be trying XcodeCapp on a project or two tomorrow. There are indications already that tightened permissions in Big Sur might be a problem for project stored on another container. It is probably time to use the hardened runtime for XcodeCapp and to notarized it for binary distribution.

Both Big Sur and Xcode 12 have made significant progress (if early indications hold true) in dealing with the reliability and performance problems they’ve been bedevilled with for the last two release years.

Big Sur needs some serious visual tweaking but it seems remarkably and unusually stable, so far, for an Apple beta

David Richardson
@enquora
The bug/feature in xcrun which cripples system performance if Xcode is launched from another APFS container is still present, unfortunately. One must not launch an instance of Xcode stored on a different APFS container.
Martin Carlberg
@mrcarlberg
@platkus It might be difficult to move a Cappuccino installation to another machine as some of the binaries are built on installation. It might work over different OS version but there could be problems. Is it the same OS version it should work. It is easy to move the Narwhal directory but there might be some links that might be hard find and setup properly.
@enquora @daboe01 We use a lot of CPSplitViews from cib and it works great. The only thing we do swap in is simple views from code to display pdfs and images so I have not tried from a cib file.
robert-plasq
@robert-plasq
We've been approved for an Apple Silicon DTK, it'll arrive next month and I'll happily kick the tires of the Cappuccino tool chain.
David Richardson
@enquora
@timhowell01 XcodeCapp working properly so far. Having problems with folders which are symlinks to a separate APFS container - that appears to be the only problem. Xcode 12 and Big Sur continue to show huge improvements in performance, particularly wrt latency and determinism. I haven’t seen macOS perform this well since High Sierra.
@robert-plasq Installation from source needs to be tested, which requires installing a JVM and autoconf, automake and libtool (I use MacPorts, which must be compiled from source and is a nuissance. Don’t know where homebrew is at wrt Big Sur) - are you up for that?
@robert-plasq Xcode 12 supports SVGs in the Asset Catalogue, if you missed that in last week’s announcements
robert-plasq
@robert-plasq

@robert-plasq Installation from source needs to be tested, which requires installing a JVM and autoconf, automake and libtool (I use MacPorts, which must be compiled from source and is a nuissance. Don’t know where homebrew is at wrt Big Sur) - are you up for that?

I guess we'll see what happens. :)

David Richardson
@enquora
Fwiw, the experience of installing Cappuccino from source in a clean OS reinforced the need to dump Java a.s.a.p
David Richardson
@enquora
Do we have any artists amongst our users? The system menu bar in Big Sur is now translucent by default, with no way to manually specify 100% opacity. This leads to an unfortunate lack of contrast with all the Apple provided background photos, making menu items often unreadable. XcodeCapp uses the system blue highlight to indicate activity. Apple will need to sort the contrast situation out, and I’ve already filed a Feedback, but this may not be entirely resolved prior to release and we may need a more prominent colour scheme for the menu bar icon
David Richardson
@enquora

@timhowell01 The problem with random failure reports converting xibs within XcodeCapp hasn’t magically disappeared. The answer is, as now, to simply resave again. Have added this to my XcodeCapp cleanup list - a housecleaning is overdue.

One of the WWDC sessions concerned reading and writing files - will start by watching that to see why they considered that appropriate for a session.

Otherwise, though, XcodeCapp is working as intended under Big Sur
David Richardson
@enquora
The web API pages seem to have disappeared over the last day - does anyone know what happened?
Hmmm, Javascript must be enabled to view the API navigator. That’s less than ideal. At a minimum, a message should be displayed to indicate this loss of functionality when Javascript is disabled
David Richardson
@enquora

@daboe01 @mrcarlberg I’ve continuing to work at my master/detail view (still using CPSplitVew) and am making progress but still seeing strange things with swapped in CPScrollViews. Scrollers are neither showing properly nor functioning for a swapped-in CPScrollView.

I have settled on replacing the second of the two splitview’s subviews (the detail view) entirely with the detail view loaded from a cib. The swapped-in subview will always have a CPScrollView at its root. This allows visually confirming the detail view’s struts and springs are correctly set by resizing the view in IB. Previously, it was the second subview of the CPSplitView which contained the (permanent, created at design time) CPScrollView and its contentView was the swapping target. This made it impossible to visually confirm the subview’s resize masks were set correctly.

With the permanent CPScollView as the CPSplitView’s second subview, scrollers worked properly, but it was a chore ensuring the swapped-in subviews had their resizing masks set correctly. Almost all content in the detail view needs a scroller at its root.

Curiously, the swapped-in CPScrollView’s scroller frames are clearly present, but the scroll thumbs themselves are neither visible nor function (using scroll-wheel mouse). It’s not clear if the fault is in Cappuccino or my view configuration - but the scrollview’s visibility settings are IB’s defaults, which make them visible.

David Richardson
@enquora
fwiw, reducing the window height sufficiently to obscure the last CPTextField, then tabbing into it does, indeed, scroll the field into view.
David Richardson
@enquora

An approach which works but doesn’t answer the original problem. Use a permanent CPScrollView as the second (detail) subview in the CPSplitView. Use a root CPScrollView in the detail view’s cib for visual checking of resizing. When loading check to see if the cib’s root view is a scroll view. If so, get its content view for swapping in, else get its root root view for swapping in. Document exhaustively so others won’t wonder wtf in the future.

Suggestions/comments about the original problem still welcome though.

timhowell01
@timhowell01
@enquora Thanks for the Big Sur testing
daboe01
@daboe01
@mrcarlberg thank you for merging #2900 ! can you please merge #2899 also? This would make it possible for me to switch back to master in production.
Martin Carlberg
@mrcarlberg
@daboe01 I will take a look at #2899
@daboe01 Also, can you add one or more test cases in CPAttributedStringTest.j to test your new method in #2900
Martin Carlberg
@mrcarlberg
@enquora Is it possible to make a very small test app with one CPSplitView and load a cib file with a CPScrollView as a root view with just one large view in it (so it can be scrolled). This will allow us to test this and figure out what is happening. It maybe could be added to the manual tests.
daboe01
@daboe01
@mrcarlberg is it ok for you if i add the tests for #2900 in #2899? or should i open a new PR?
Martin Carlberg
@mrcarlberg
Please open a new PR.
Didier Korthoudt
@didierkorthoudt
Dear all,
Sorry for those long weeks of silence ! I must confess that I was overhelmed by all the university and the hospital activities during this Covid crisis. Things are calming down now and I’ll get back to Cappuccino as soon as I come back from a 2 weeks holiday, very very needed ! I’ll read all those missed messages while being along the sea on a small island, very isolated… 😉
I trully hope that everyone is going well !
Martin Carlberg
@mrcarlberg
@didierkorthoudt We are sure missing you here but have a great holiday 😎
daboe01
@daboe01
@didierkorthoudt great to see you are ok!
daboe01
@daboe01
@mrcarlberg @enquora i managed to fix my non-cib splitview autosizing issues by mimicking some semantics of _cibInstantiate
Martin Carlberg
@mrcarlberg
@daboe01 I think we need to fix the initWithFrame: method in CPSplitView so it can handle these things
David Richardson
@enquora
@mrcarlberg I will indeed make up a test app. As it turns out, with the final architecture I described, there is a problem with CPTextView, even though all the others are working. Whether this is the fault of my own code or a problem with Cappuccino I need to understand what is happening.
David Richardson
@enquora
@didierkorthoudt des vacances heureuses!
Didier Korthoudt
@didierkorthoudt
@enquora Thank you / Merci ! 😊
@daboe01 @mrcarlberg I see some discussion around CPSplitView. Have to read all messages but maybe problems are solved in my new implementation...
Well, no need to take a book for my holidays ! 😅
daboe01
@daboe01
@didierkorthoudt i had some trouble with restoring autosaved positions when working without cib. Works for me now.
Didier Korthoudt
@didierkorthoudt
@daboe01 Good news, as I was mainly focused on xib/cib things. We may have to merge works...
Martin Carlberg
@mrcarlberg
@didierkorthoudt I believe it is your new implementation from #2876 :smile:
Didier Korthoudt
@didierkorthoudt
@mrcarlberg 😄😅
David Richardson
@enquora

@mrcarlberg A test case for swapping in a CPScrollView to the second view in a CPSplitView: https://github.com/enquora/SwapViewTest

The standard procedure is probably to use a CPView as a permanent detail view in the split and swap its subviews. I believe I’ve tried that and the swapped in scrollers are not working, as is the case here. Nevertheless, should the scrollers not work in this case? They don’t.

David Richardson
@enquora
I haven’t tried this in objective-c yet
David Richardson
@enquora
Reviving a Tiger-era code base, perhaps of interest to anyone doing so with old sample code they’re trying to use as an Objective-J pattern: https://www.sicpers.info/2020/07/tiger-to-catalina-lets-port-some-code/
daboe01
@daboe01
@enquora interesting read. thank you!