Red Faces department… Been a while since I'd touched it, and I'd forgotten how it worked.
'NO_BEEPS' ui 1 will turn off all beeps (alerts) in the app. Restore them with: 'NO_BEEPS' ui 0 > couldn't find a setting to turn off the sounds in the app itself. You can see and overtype current settings of flags with: .u fl shorthand for: ui'flags' NO_BEEPS is about halfway down the list. What I said earlier largely stands, however. I shall revamp iosutils, especially the implementation of beeps. Sorry for so many ways to achieve a given end-result. Python used to flaunt the motto: "There's only one way to do it." J's motto ought to be: "There's always one more way to do it." On Mon, 9 May 2022 at 03:50, Ian Clark <earthspo...@gmail.com> wrote: > Could you explain what you mean by "silent mode" in the context of > iOS/iPadOS? I stare in vain at "Sounds" in the Settings app for anything > resembling such a thing. I see a statement: "The volume of the ringer and > alerts will not be affected by the volume buttons." The Apple maggots seem > to believe that essential signals like alerts should not be > blanket-suppressed. I don't possess an iPhone, only an iPad, so someone > please tell me whether there is indeed a "silent mode" on that device, as > opposed to iPads. > > I think it's possible to over-control sound, to the despair of beginners. > J901 for iOS uses the builtin iOS "alerts" in a fairly haphazard way, but > the aim was to deploy them consistently. Thus the tweet sound (number 1016 > in coders' documentation) is produced by a factory verb: tweet, and you can > turn it off like this: > tweet_z_=: empty > To see and edit (tweet) and its sisters, enter the J phrase: > edit'tweet' > This will open j/system/ios/iosutils.ijs, and the beeps are defined at > line 45 onwards. You can edit this script and relaunch the app to make the > beeps behave how you like, or redefine them in j/config/startup.ijs. > > The original idea was to treat all beeps consistently and funnel their > definition through a single J verb: beep. Then we could turn off all beeps > like this: > beep_z_=: empty > or switch (beep) using a spare boolean flag. > Alas these good things haven't been done, and that's a bug I can easily > fix. Factory scripts (like iosutils.ijs) are part of the app, so they're > best fixed via App Store. But you're welcome to roll-your-own iosutils, or > other factory scripts, and pm them to me. To explore the factory scripts, > enter: > .d > and take a guess at what to do next. > > I must confess that the J factory scripts have not enjoyed the attention > I've paid to getting the Swift/C code right. Fine-tuning them is something > others can do far better than I can. Whereas Xcode, Objective-C, Swift and > UIKit seem to be skills in limited supply on the J forum. > > That I hope is something that will change. The last 2 years have seen > Apple make massive improvements to iOS and how to code good apps for it. > Things aren't as dire as when we started developing a replacement for j701 > back in 2019. > > Ian Clark > > On Sun, 8 May 2022 at 18:43, Jan-Pieter Jacobs <janpieter.jac...@gmail.com> > wrote: > >> Talking about IOS bugs (great app, by the way), I noticed that some sounds >> don't obey the silent mode (or whatever IOS calls that mode). I also >> couldn't find a setting to turn off the sounds in the app itself. >> I think ignoring silent mode could count as a bug, and an in-app toggle as >> a feature-request :). >> >> Keep up the good work! >> >> Jan-Pieter >> >> On Sun, 8 May 2022, 12:50 Ian Clark, <earthspo...@gmail.com> wrote: >> >> > Thanks Robert. I can reproduce the bug. >> > >> > There's no workaround I can find. The app needs to be terminated and >> > restarted. E.g by double-clicking the (hardware) Home button, which >> shows >> > thumbnails of open apps, and swiping upwards on the j901 app icon to >> make >> > it disappear. >> > >> > I'll put it on the bug list for the next update. >> > >> > Ian Clark >> > >> > On Sat, 7 May 2022 at 20:27, Robert Cyr <robert....@gmail.com> wrote: >> > >> > > ... >> > >> > The system will not respond, you are locked out. >> > > ---------------------------------------------------------------------- >> > > >> > > >> > ---------------------------------------------------------------------- >> > For information about J forums see http://www.jsoftware.com/forums.htm >> > >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm