Post

Replies

Boosts

Views

Activity

Reply to Latest MacBook Pro
why should I update my MacBook Pro What is your present MacBook Pro ? If it is really old (2014 or before), then you may already face problem to upgrade MacOS. . to the latest available in the market?  It all depends on your needs. If you need a lot of performance (to develop large apps, for video editing, for advanced machine learning, …), latest MacBook are really interesting. For more "simple" use, IMO, no need for the latest available.
Topic: App & System Services SubTopic: Hardware Tags:
Nov ’21
Reply to Lidar
Hope I understand your question. If so, you could use liar to measure distance (sceneDepth) of different points of the surface and compute slope from it. The picture illustrates how in case you are facing the slope (means you want the slope in front of you): Equations are: (1) l cos(α) + d2 cos(β) = d1 (2) l sin(α) = d2 sin(β) => l = d2 sin(b) / sin(α) Which gives form (1) cos(a) = (d1 - d2 cos(β)) / l = (d1 - d2 cos(β)) sin(α) / d2 sin(β) And finally the angle we look for tan(α) = sin(α) / cos(α) = d2 sin(β) / (d1 - d2 cos(β)) You know d1 and d2 from lidar sceneDepth, you can get β by finding iPhone orientation. That may also provide additional information: https://developer.apple.com/forums/thread/674623
Topic: Spatial Computing SubTopic: ARKit Tags:
Nov ’21
Reply to Lidar
I did some more computation, in case you are side facing the slope: . From top where we look at the slope by the side: There is a relationship in a Triangle between sides and angles: So, P1 and P2 being points selected on the surface along max slope direction: D D = d1 d1 + d2 d2 - 2 d1 d2 cos(δ) D = sqrt( d1 d1 + d2 d2 - 2 d1 d2 cos(δ)) We can know d1, d2 and δ, which is how much we rotate the phone from P1 target to P2 target . Looking from a section perspective (bottom images) h = h1 + d1 sin(α) = h2 + d2 sin(β) Hence (h1 - h2) = d2 sin(β) - d1 sin(α) we can get iPhone orientation, hence α and β, as well as d1 and d2, hence h1 - h2 from above formula slope is given by tan(slope) = (h1 - h2) / D = (d2 sin(β) - d1 sin(α)) / sqrt( d1 d1 + d2 d2 - 2 d1 d2 cos(δ))
Topic: Spatial Computing SubTopic: ARKit Tags:
Nov ’21
Reply to publication of App release progress
publish an advancement of the release of my App What do you want to publish as "advancement" ? In new release of App, you explain what its new. Also look at recently announced evolutions of Appstore, allowing to post events. It may well be what you are looking for. https://developer.apple.com/app-store-connect/submission-update/
Nov ’21
Reply to Having trouble using Darwin Notifications
I'm not familiar with Darwin. But I would first look at how callBack is passed as argument. See discussion here, with detailed eskimo's comments ; hope that helps (even though it is for Swift code): https://developer.apple.com/forums/thread/71630 Note: When you post code, you should use code formatter and Paste and Match Style to avoid all extra lines: //callback static void myCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) { NSLog(@"In callback function"); } int main(int argc, const char * argv[]) { // Add Observer CFNotificationCenterAddObserver( CFNotificationCenterGetDarwinNotifyCenter(), //center NULL, //observer myCallback, //callback CFSTR("sanity_check"), //event name NULL, //object CFNotificationSuspensionBehaviorDeliverImmediately ); // Post notification 1 CFNotificationCenterPostNotification( CFNotificationCenterGetDarwinNotifyCenter(), // center CFSTR("sanity_check"), // event name NULL, //object NULL, //userinfo dictionary true); // Post notification 2 notify_post("sanity_check"); return 0; }
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to Struct Array Filter Problem
When you write: $0 == newBox.ID you try to equate a box ($0 is an item in boxArray, thus a box) to a String. That cannot work. So, you have to write: let filteredArray = boxArray.filter{$0.ID == newBox.ID} if filteredArray.isEmpty { // Then we can accept the entry } Note: a struct name should start with Uppercase: Box This is probably your first post on the forum. Welcome. Don't hesitate to ask more if it still doesn't work ; otherwise, don't forget to close the thread by marking the correct answer.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’21
Reply to Regarding hiding the menu bar...
Unless I miss something in your question, you can hide the complete bar with:         NSMenu.setMenuBarVisible(false) Then you should disable all menu items, such as for File:         fileMenuItem.isEnabled = false See some more explanations in this old thread https://developer.apple.com/forums/thread/41851
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to Question free app
Guidelines 3.1.1. state: Non-subscription apps may offer a free time-based trial period before presenting a full unlock option by setting up a Non-Consumable IAP item at Price Tier 0 that follows the naming convention: “XX-day Trial.” Prior to the start of the trial, your app must clearly identify its duration, the content or services that will no longer be accessible when the trial ends, and any downstream charges the user would need to pay for full functionality.  That seems to authorise the business model you are considering. However, you say: We have an app that is a website If so, it does not comply with guidelines: . 4.2 Minimum Functionality Your app should include features, content, and UI that elevate it beyond a repackaged website. If your app is not particularly useful, unique, or “app-like,” it doesn’t belong on the App Store.  So it does risk being rejected.
Nov ’21
Reply to Latest MacBook Pro
why should I update my MacBook Pro What is your present MacBook Pro ? If it is really old (2014 or before), then you may already face problem to upgrade MacOS. . to the latest available in the market?  It all depends on your needs. If you need a lot of performance (to develop large apps, for video editing, for advanced machine learning, …), latest MacBook are really interesting. For more "simple" use, IMO, no need for the latest available.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to After app update, the app crashes on open.
Haven't you changed anything in user data ? Such as userDefaults, sores files… If so, crash could come from a failed attempt to read those data.
Replies
Boosts
Views
Activity
Nov ’21
Reply to About "Tanıt - Influencer Pazaryeri" APP
That is not a question for this forum. Please contact directly webruz ; and don't forget to close the thread. Good luck.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Lidar
Hope I understand your question. If so, you could use liar to measure distance (sceneDepth) of different points of the surface and compute slope from it. The picture illustrates how in case you are facing the slope (means you want the slope in front of you): Equations are: (1) l cos(α) + d2 cos(β) = d1 (2) l sin(α) = d2 sin(β) => l = d2 sin(b) / sin(α) Which gives form (1) cos(a) = (d1 - d2 cos(β)) / l = (d1 - d2 cos(β)) sin(α) / d2 sin(β) And finally the angle we look for tan(α) = sin(α) / cos(α) = d2 sin(β) / (d1 - d2 cos(β)) You know d1 and d2 from lidar sceneDepth, you can get β by finding iPhone orientation. That may also provide additional information: https://developer.apple.com/forums/thread/674623
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Lidar
I did some more computation, in case you are side facing the slope: . From top where we look at the slope by the side: There is a relationship in a Triangle between sides and angles: So, P1 and P2 being points selected on the surface along max slope direction: D D = d1 d1 + d2 d2 - 2 d1 d2 cos(δ) D = sqrt( d1 d1 + d2 d2 - 2 d1 d2 cos(δ)) We can know d1, d2 and δ, which is how much we rotate the phone from P1 target to P2 target . Looking from a section perspective (bottom images) h = h1 + d1 sin(α) = h2 + d2 sin(β) Hence (h1 - h2) = d2 sin(β) - d1 sin(α) we can get iPhone orientation, hence α and β, as well as d1 and d2, hence h1 - h2 from above formula slope is given by tan(slope) = (h1 - h2) / D = (d2 sin(β) - d1 sin(α)) / sqrt( d1 d1 + d2 d2 - 2 d1 d2 cos(δ))
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to publication of App release progress
publish an advancement of the release of my App What do you want to publish as "advancement" ? In new release of App, you explain what its new. Also look at recently announced evolutions of Appstore, allowing to post events. It may well be what you are looking for. https://developer.apple.com/app-store-connect/submission-update/
Replies
Boosts
Views
Activity
Nov ’21
Reply to Having trouble using Darwin Notifications
I'm not familiar with Darwin. But I would first look at how callBack is passed as argument. See discussion here, with detailed eskimo's comments ; hope that helps (even though it is for Swift code): https://developer.apple.com/forums/thread/71630 Note: When you post code, you should use code formatter and Paste and Match Style to avoid all extra lines: //callback static void myCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) { NSLog(@"In callback function"); } int main(int argc, const char * argv[]) { // Add Observer CFNotificationCenterAddObserver( CFNotificationCenterGetDarwinNotifyCenter(), //center NULL, //observer myCallback, //callback CFSTR("sanity_check"), //event name NULL, //object CFNotificationSuspensionBehaviorDeliverImmediately ); // Post notification 1 CFNotificationCenterPostNotification( CFNotificationCenterGetDarwinNotifyCenter(), // center CFSTR("sanity_check"), // event name NULL, //object NULL, //userinfo dictionary true); // Post notification 2 notify_post("sanity_check"); return 0; }
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to “iPhone” is busy: Making the device ready for development
I simply I rebooted everything. When opening Windows > Devices, iPhone was stated as busy. After 10’, that was cleared. You could also have a look at this older thread: https://stackoverflow.com/questions/46316373/fixing-xcode-9-issue-iphone-is-busy-preparing-debugger-support-for-iphone
Replies
Boosts
Views
Activity
Nov ’21
Reply to wwdc20-10073 Recipe Assistant project not working
You are probably doing nothing wrong. The sample code is just obsoleted. If you could post the code you use, that would help analyse the issues.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Where do I start?
Go to Apple Books and find a lot of free comprehensive tutorial courses. I recommend you to start with Intro to App development with Swift then App Development with Swift.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Struct Array Filter Problem
When you write: $0 == newBox.ID you try to equate a box ($0 is an item in boxArray, thus a box) to a String. That cannot work. So, you have to write: let filteredArray = boxArray.filter{$0.ID == newBox.ID} if filteredArray.isEmpty { // Then we can accept the entry } Note: a struct name should start with Uppercase: Box This is probably your first post on the forum. Welcome. Don't hesitate to ask more if it still doesn't work ; otherwise, don't forget to close the thread by marking the correct answer.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to What's the expected performance of VNHumandBodyPoseObservation::recognizedPoint
Where did you find VNHumandBodyPoseObservation ? I cannot find it anywhere in doc, nor on the web.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Fetch device and baterry information from device?
Where did you read it is risky ? Only point is that you have to use only public API. See this old reference discussion on the topic: https://developer.apple.com/forums/thread/51595
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Regarding hiding the menu bar...
Unless I miss something in your question, you can hide the complete bar with:         NSMenu.setMenuBarVisible(false) Then you should disable all menu items, such as for File:         fileMenuItem.isEnabled = false See some more explanations in this old thread https://developer.apple.com/forums/thread/41851
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Question free app
Guidelines 3.1.1. state: Non-subscription apps may offer a free time-based trial period before presenting a full unlock option by setting up a Non-Consumable IAP item at Price Tier 0 that follows the naming convention: “XX-day Trial.” Prior to the start of the trial, your app must clearly identify its duration, the content or services that will no longer be accessible when the trial ends, and any downstream charges the user would need to pay for full functionality.  That seems to authorise the business model you are considering. However, you say: We have an app that is a website If so, it does not comply with guidelines: . 4.2 Minimum Functionality Your app should include features, content, and UI that elevate it beyond a repackaged website. If your app is not particularly useful, unique, or “app-like,” it doesn’t belong on the App Store.  So it does risk being rejected.
Replies
Boosts
Views
Activity
Nov ’21