Search results for

column

2,062 results found

Post

Replies

Boosts

Views

Activity

Reply to Creating Floor Plan with RoomPlan
actually what you need to do is remove the y component and not the z component, if you want to convert from 3D->2D, from CapturedRoom you get dimensions.x (wall length) and (transform) .columns.3.x, transform .columns.3.z) is the coordinate of the center of the wall and the direction(transform.columns.0.z, transform.columns.0.z), is the direction of the wall, now you there is a starting and ending point of a wall, similar to other things
Topic: Spatial Computing SubTopic: ARKit Tags:
Mar ’23
Why wont my decoder parse .json files
launchdata.json: [ { name: Smartcard, imageName: Smartcard, description: A all new way to buy and sell stuff featuring RFID and NFC for touchless transactions and with local server you can pay with your phone., department: Ticki Finance, productid: 1737484, id: 1, creator: The Ticki Team }, { name: Ink pad, imageName: Inkpad, description: A quick and easy way to take fingerprints and stamp stamps:), And with a quick water activation taking only 15 seconds you can setup in no time. Also, refilling the ink chamber is super easy, all you have to do is put ink in the middle hole., department: Ticki Design, productid: 7338388, id: 2, creator: The Ticki Team }, { name: Wallet, imageName: Wallet, description: Ever had issues with your credit cards falling out of your pocket/wallet? Well this fixes any issues. Introducing Ticki Wallet. , department: Ticki Finance, productid: 2444495, id: 3, creator: The Ticki Team }, { name: Pencil Case, imageName: PencilCase, description: I always lose my my pencils. How about you?
4
0
690
Mar ’23
NSTableView dragging source image
I have a simple problem, but I’m not able to solve it in an easy way, so I suspect I’m doing something wrong. I have a simple view-based NSTableView, which is a dragging source. The data being dragged are provided to the pasteboard using the standard data source method - [NSObject tableView:writeRowsWithIndexes:toPasteboard:]. When rows of the table view are dragged, AppKit automatically creates a dragging image consisting of the visual copy for all dragged rows and all columns of the table view. If I want only particular columns, I can override -[NSTableView dragImageForRowsWithIndexes:tableColumns:event:offset:] and include only the columns I want in the dragged image. Since -[NSObject tableView:writeRowsWithIndexes:toPasteboard:]is rendered deprecated as of macOS 11, I want to use the alternative (which also supports multiple item dragging) -[NSObject tableView:pasteboardWriterForRow:]. However, when I use this method, AppKit creates a dragging image consisting of the visual copy
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
1.1k
Mar ’23
Reply to Weird behavior with NavigationSplitView and @State
Same issue is happening when you have Three Column layout. But it seems to be more visible what is happening. When I select other category in the main sidebar, the selected item in secondary sidebar won't get unselected, plus new item from selected category gets selected. So now after two clicks I have somehow two selected items in my secondary sidebar and when i'll continue playing with it I'll get thread ERROR. The problem is the automatic selection of item in second list. you can't touch on that and reset it when the category from primary sidebar is changed. What is really surprising for me is that I haven't found any threads about this so far, even though this behavior is happening in the most basic example of three column layout where you have same items in different categories.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’23
A glitch of CGContextSetFillPattern glitch on Ventura
I find a glitch of CGContextSetFillPattern glitch only on Ventura. If the size of the pattern is a multiple of 4, there will be a hole in the upper right corner of the pattern in the first column. I make a demo Xcode project here. I have tried all three CGPatternTiling enum values, all have the same result.
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
609
Mar ’23
NSTableView - SQLite
I'm trying to get results from a SQLite database, containing rows and columns, into a NSTableView, using Swift. There is no problem with the database query and I'm getting no errors when running the application. However, when displaying data, I always get the same (last) row in the table - repeated so many times as the total number of rows. What is missing in my code ? Thanks in advance. `class SecondViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate { @IBOutlet var tableview: NSTableView! var querySQL = var bdadosDB: OpaquePointer? var statement: OpaquePointer? var allRows = [String]() var rows = [String]() var cols = [String]() var CellIdentifiers :[String] = [ordCell, procCell, espCell, natCell, recCell, estCell, julgCell, decCell] override func viewDidLoad() { let dirPaths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true) let docsDir = dirPaths[0] let databasePath = (docsDir as NSString).appendingPathComponent(bdados.db) let dbpath = datab
0
0
492
Mar ’23
Reply to CoreData stack init is freeze
I noticed a CoreData error when keeps app working with the copied sqlite files. The console shows: CoreData: error: (13) database or disk is full CoreData: annotation: Disconnecting from sqlite database due to an error. CoreData: error: SQLCore dispatchRequest: exception handling request: , error during SQL execution : database or disk is full with userInfo of { NSFilePath = /var/mobile/Containers/Data/Application/77B8EAB6-120F-4E4D-AE96-EDC81258A250/Documents/myDB2.sqlite; NSSQLiteErrorDomain = 13; } It happens randomly and multiple times after different CoreData activities: SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = 'ACHANGE' SELECT all columns from the regular table. SQLite bind[2] = SQLite: EXPLAIN QUERY PLAN SELECT sql: COMMIT Fetching 13543 rows Is it mean that the iPad doesn't have enough disk or RAM space? The iPad storage shows 26 GB of 128 GB used and application alocated only 48 MB RAM. I don't see the same errors on a different iPad with the same copied files.
Mar ’23
In UISplitViewController, can I use same viewController as a primary and compact column?
I am trying to utilize UISplitViewController to develop my app for iPad users. Since my app has a UITabBarController as its root view controller, I want to set this root view controller as a primary view controller in new UISplitViewController hierarchy, and its detail view controller to the secondary column. Also, when the app's width size class is compact (iPad SplitView mode), I want it to be same as current app. So the root view controller (UITabBarController) should be on the compact column of the new UISplitViewController system like below. class MySplitViewController: UISplitViewController { override init(style: UISplitViewController.Style) { super.init(style: style) let primaryVC = PrimaryViewController() let secondaryVC = SecondaryViewController() setViewController(primaryVC, for: .primary) setViewController(secondaryVC, for: .secondary) setViewController(primaryVC, for: .compact) } } With this code, in regular width mode, the primary and secondary column looks great as I e
2
0
605
Mar ’23
Reply to Video with different audio and video durations for HLS playback
I don't understand what is the discontinuity information duration table saying. What is the domains column? What does it mean if the start time table is all empty dashes? Also, I tried running the validator tool against the same file without differing video and audio stream duration and there was no error about Different content duration detected between discontinuities but there was still a shorter discontinuity information table. So is there something else that could be causing that warning instead of the total duration of the two streams being different in seconds? And yes I meant to extend the audio stream to match the video stream duration by padding the request and manifest with silence or padding video with empty P frames.
Topic: Media Technologies SubTopic: Streaming Tags:
Mar ’23
ARKit: ARSkeleton Accuracy
I'm building an app and one of the requirements is being able to get a somewhat accurate estimate for a person's height. Getting within an inch (maybe two) is fine but a delta greater than that and it won't work. I'm using ARBodyTrackingConfiguration to get the detected ARAnchor/ARSkeleton and I'm seeing this come in to the session delegate. To calculate the height, I've tried two methods: Take the jointModelTransforms for the right_toes_joint and the head_joint and find the difference in the y coordinates. Build a bounding box by throwing the jointModelTransforms of all the joints in the skeleton into it and then finding the difference in y coordinate of the min/max of the bounding box. To account for the distances between my head and my crown, I'm taking the distance from the neck_3_joint (neck) to the head_joint and adding this to my values from either method 1) or 2). Why this particular calculation? Because this should roughly account for the missing height according to the way artists draw faces. Both m
0
0
718
Feb ’23