From the programmer's pov there isn't meant to be any real difference between iOS and iPadOS. And Apple are trying to discourage developers from offering iPad-only apps. But the two platforms look substantially different to the end user -- as indeed do different models of each. I'm only just discovering those differences. It's been a deliberate blind-spot because j901 is a dual-platform app -- which is the default for an Xcode coder.
> Maybe this is some Apple peculiarity that prioritises some noises over others? No, it's my fault, not Apple's. AFAIK Apple doesn't do that. In some places I call beeps directly from Swift, such as when you swipe through plots and hit the buffers. For consistency, the app needs to funnel all beeps through the verb: beep. This means that Swift/UIKit needs to call on JE for services even when there's no (other) reason to do so. On Tue, 10 May 2022 at 08:26, Jan-Pieter Jacobs <janpieter.jac...@gmail.com> wrote: > Hi Ian, > > Thanks for your replies. > 'NO_BEEPS' ui 1 indeed does the trick, that's great. > > Here red faces department as well, I'm so fresh to Apple devices I don't > know the difference between iOS and iPadOS. I was talking about silent mode > referring to the mode you put your iPad in when you press the bell icon in > the control centre. From what I read this corresponds to flipping the > physical mute button on an iPhone that has one. > > I also discovered that, strangely enough, some beeps do honour that setting > (, i.e. are silenced in silent mode, like tweet, tingtang 0 and 1), but > others do not (i.e. they are still played like klunk, booble, tingtang ''). > Maybe this is some Apple peculiarity that prioritises some noises over > others? > > Another thing I noted is that irrespective of the above, none of the sounds > appear to change volume when the iPad's volume is changed. > > For the rest, I really like j901 on the iPad, it is really a huge > improvement over the previous J app. > > Thanks, > Jan-Pieter > > On Mon, 9 May 2022 at 19:11, Ian Clark <earthspo...@gmail.com> wrote: > > > 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 > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm